N
- Type of the namespace to which timers are scoped.@Internal public interface InternalTimerService<N>
This is the internal version of TimerService
that
allows to specify a key and a namespace to which timers should be scoped.
Modifier and Type | Method and Description |
---|---|
long |
currentProcessingTime()
Returns the current processing time.
|
long |
currentWatermark()
Returns the current event-time watermark.
|
void |
deleteEventTimeTimer(N namespace,
long time)
Deletes the timer for the given key and namespace.
|
void |
deleteProcessingTimeTimer(N namespace,
long time)
Deletes the timer for the given key and namespace.
|
void |
forEachEventTimeTimer(BiConsumerWithException<N,Long,Exception> consumer)
Performs an action for each registered timer.
|
void |
forEachProcessingTimeTimer(BiConsumerWithException<N,Long,Exception> consumer)
Performs an action for each registered timer.
|
void |
registerEventTimeTimer(N namespace,
long time)
Registers a timer to be fired when event time watermark passes the given time.
|
void |
registerProcessingTimeTimer(N namespace,
long time)
Registers a timer to be fired when processing time passes the given time.
|
long currentProcessingTime()
long currentWatermark()
void registerProcessingTimeTimer(N namespace, long time)
void deleteProcessingTimeTimer(N namespace, long time)
void registerEventTimeTimer(N namespace, long time)
void deleteEventTimeTimer(N namespace, long time)
void forEachEventTimeTimer(BiConsumerWithException<N,Long,Exception> consumer) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.