public class SessionEvictionScheduler extends Object implements Scheduler<ImmutableSession>
| Constructor and Description |
|---|
SessionEvictionScheduler(Batcher batcher,
Evictor<String> evictor,
int maxSize) |
SessionEvictionScheduler(Batcher batcher,
Evictor<String> evictor,
int maxSize,
ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(ImmutableSession session)
Cancels the scheduled task for the specified value.
|
void |
close()
Closes any resources used by this scheduler.
|
void |
schedule(ImmutableSession session)
Schedules some task for the specified value.
|
public SessionEvictionScheduler(Batcher batcher, Evictor<String> evictor, int maxSize)
public SessionEvictionScheduler(Batcher batcher, Evictor<String> evictor, int maxSize, ExecutorService executor)
public void cancel(ImmutableSession session)
Schedulercancel in interface Scheduler<ImmutableSession>session - the item to cancel.public void schedule(ImmutableSession session)
Schedulerschedule in interface Scheduler<ImmutableSession>session - the item to schedule.public void close()
Schedulerclose in interface AutoCloseableclose in interface Scheduler<ImmutableSession>Copyright © 2014 JBoss by Red Hat. All rights reserved.