K - Type of timer's key.N - Type of the namespace to which timers are scoped.@Internal public class InternalTimerServiceAsyncImpl<K,N> extends InternalTimerServiceImpl<K,N>
InternalTimerService that is used by AbstractAsyncStateStreamOperator.
The timer service will set RecordContext for the timers before invoking action to
preserve the execution order between timer firing and records processing.cancellationContext, currentWatermark, eventTimeTimersQueue, keyContext, nextTimer, processingTimeService, processingTimeTimersQueue, taskIOMetricGroup, triggerTarget| 限定符和类型 | 方法和说明 |
|---|---|
void |
advanceWatermark(long time)
Advance one watermark, this will fire some event timers.
|
protected void |
foreachTimer(org.apache.flink.util.function.BiConsumerWithException<N,Long,Exception> consumer,
org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<TimerHeapInternalTimer<K,N>> queue)
Iterator each timer in the queue, and invoke the consumer.
|
currentProcessingTime, currentWatermark, deleteEventTimeTimer, deleteProcessingTimeTimer, forEachEventTimeTimer, forEachProcessingTimeTimer, getKeySerializer, getNamespaceSerializer, numEventTimeTimers, numEventTimeTimers, numProcessingTimeTimers, numProcessingTimeTimers, registerEventTimeTimer, registerProcessingTimeTimer, restoreTimersForKeyGroup, snapshotTimersForKeyGroup, startTimerService, tryAdvanceWatermarkpublic void advanceWatermark(long time)
throws Exception
advanceWatermark 在类中 InternalTimerServiceImpl<K,N>time - the time in watermark.Exceptionprotected void foreachTimer(org.apache.flink.util.function.BiConsumerWithException<N,Long,Exception> consumer, org.apache.flink.runtime.state.KeyGroupedInternalPriorityQueue<TimerHeapInternalTimer<K,N>> queue) throws Exception
foreachTimer 在类中 InternalTimerServiceImpl<K,N>ExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.