public class BatchExecutionInternalTimeService<K,N> extends Object implements InternalTimerService<N>
InternalTimerService that manages timers with a single active key
at a time. Can be used in a BATCH execution mode.| 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(org.apache.flink.util.function.BiConsumerWithException<N,Long,Exception> consumer)
Performs an action for each registered timer.
|
void |
forEachProcessingTimeTimer(org.apache.flink.util.function.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.
|
void |
setCurrentKey(K currentKey) |
public long currentProcessingTime()
InternalTimerServicecurrentProcessingTime in interface InternalTimerService<N>public long currentWatermark()
InternalTimerServicecurrentWatermark in interface InternalTimerService<N>public void registerProcessingTimeTimer(N namespace, long time)
InternalTimerServiceregisterProcessingTimeTimer in interface InternalTimerService<N>public void registerEventTimeTimer(N namespace, long time)
InternalTimerServiceregisterEventTimeTimer in interface InternalTimerService<N>public void deleteProcessingTimeTimer(N namespace, long time)
InternalTimerServicedeleteProcessingTimeTimer in interface InternalTimerService<N>public void deleteEventTimeTimer(N namespace, long time)
InternalTimerServicedeleteEventTimeTimer in interface InternalTimerService<N>public void forEachEventTimeTimer(org.apache.flink.util.function.BiConsumerWithException<N,Long,Exception> consumer)
InternalTimerServiceforEachEventTimeTimer in interface InternalTimerService<N>public void forEachProcessingTimeTimer(org.apache.flink.util.function.BiConsumerWithException<N,Long,Exception> consumer)
InternalTimerServiceforEachProcessingTimeTimer in interface InternalTimerService<N>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.