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(String sessionId,
ImmutableSessionMetaData metaData)
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 SessionEvictionContext
public void cancel(String sessionId)
Scheduler
public void schedule(String sessionId, ImmutableSessionMetaData metaData)
Scheduler
public void cancel(Locality locality)
Scheduler
public void close()
Scheduler
close
in interface AutoCloseable
close
in interface Scheduler
Copyright © 2017 JBoss by Red Hat. All rights reserved.