public abstract class TimerService extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TimerService.CancelHandle |
| Constructor and Description |
|---|
TimerService() |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> TimerService.CancelHandle |
add(TimerListener _listener,
long _fireTime)
Add a timer that fires at the specified time.
|
abstract <T> TimerService.CancelHandle |
add(TimerPayloadListener<T> _listener,
T _payload,
long _fireTime) |
abstract long |
getCancelCount() |
abstract long |
getEventsDelivered() |
abstract long |
getEventsScheduled() |
abstract long |
getFireExceptionCount() |
abstract long |
getPurgeCount() |
abstract int |
getQueueSize()
Return the tasks in the timer queue including the cancelled.
|
public TimerService()
public abstract <T> TimerService.CancelHandle add(TimerListener _listener, long _fireTime)
public abstract <T> TimerService.CancelHandle add(TimerPayloadListener<T> _listener, T _payload, long _fireTime)
public abstract int getQueueSize()
public abstract long getEventsDelivered()
public abstract long getEventsScheduled()
public abstract long getPurgeCount()
public abstract long getCancelCount()
public abstract long getFireExceptionCount()
cache2k API documentation. Copyright © 2000–2015 headissue GmbH, Munich.