public abstract class TimeServiceProvider extends Object
Constructor and Description |
---|
TimeServiceProvider() |
Modifier and Type | Method and Description |
---|---|
abstract long |
getCurrentProcessingTime()
Returns the current processing time.
|
abstract ScheduledFuture<?> |
registerTimer(long timestamp,
Runnable target)
Registers a task to be executed when (processing) time is
timestamp . |
abstract void |
shutdownService()
Shuts down and clean up the timer service provider.
|
public abstract long getCurrentProcessingTime()
public abstract ScheduledFuture<?> registerTimer(long timestamp, Runnable target)
timestamp
.timestamp
- when the task is to be executed (in processing time)target
- the task to be executedCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.