public class SessionEvictionScheduler extends Object implements Scheduler, SessionEvictionContext
| Constructor and Description |
|---|
SessionEvictionScheduler(String name,
Evictor<String> evictor,
CommandDispatcherFactory dispatcherFactory,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(Locality locality)
Cancels any previous scheduled tasks for session which are no longer local to the current node
|
void |
cancel(String sessionId)
Cancels a previously scheduled task for the specified session
|
void |
close()
Closes any resources used by this scheduler.
|
Evictor<String> |
getEvictor() |
void |
schedule(ImmutableSession session)
Schedules a task for the specified session.
|
public SessionEvictionScheduler(String name, Evictor<String> evictor, CommandDispatcherFactory dispatcherFactory, int maxSize)
public Evictor<String> getEvictor()
getEvictor in interface SessionEvictionContextpublic void cancel(String sessionId)
Schedulerpublic void schedule(ImmutableSession session)
Schedulerpublic void cancel(Locality locality)
Schedulerpublic void close()
Schedulerclose in interface AutoCloseableclose in interface SchedulerCopyright © 2015 JBoss by Red Hat. All rights reserved.