@Internal public class SimpleTimerService extends Object implements TimerService
TimerService
that uses a InternalTimerService
.UNSUPPORTED_DELETE_TIMER_MSG, UNSUPPORTED_REGISTER_TIMER_MSG
构造器和说明 |
---|
SimpleTimerService(InternalTimerService<org.apache.flink.runtime.state.VoidNamespace> internalTimerService) |
限定符和类型 | 方法和说明 |
---|---|
long |
currentProcessingTime()
Returns the current processing time.
|
long |
currentWatermark()
Returns the current event-time watermark.
|
void |
deleteEventTimeTimer(long time)
Deletes the event-time timer with the given trigger time.
|
void |
deleteProcessingTimeTimer(long time)
Deletes the processing-time timer with the given trigger time.
|
void |
registerEventTimeTimer(long time)
Registers a timer to be fired when the event time watermark passes the given time.
|
void |
registerProcessingTimeTimer(long time)
Registers a timer to be fired when processing time passes the given time.
|
public SimpleTimerService(InternalTimerService<org.apache.flink.runtime.state.VoidNamespace> internalTimerService)
public long currentProcessingTime()
TimerService
currentProcessingTime
在接口中 TimerService
public long currentWatermark()
TimerService
currentWatermark
在接口中 TimerService
public void registerProcessingTimeTimer(long time)
TimerService
Timers can internally be scoped to keys and/or windows. When you set a timer in a keyed
context, such as in an operation on KeyedStream
then that context will also be active
when you receive the timer notification.
registerProcessingTimeTimer
在接口中 TimerService
public void registerEventTimeTimer(long time)
TimerService
Timers can internally be scoped to keys and/or windows. When you set a timer in a keyed
context, such as in an operation on KeyedStream
then that context will also be active
when you receive the timer notification.
registerEventTimeTimer
在接口中 TimerService
public void deleteProcessingTimeTimer(long time)
TimerService
Timers can internally be scoped to keys and/or windows. When you delete a timer, it is removed from the current keyed context.
deleteProcessingTimeTimer
在接口中 TimerService
public void deleteEventTimeTimer(long time)
TimerService
Timers can internally be scoped to keys and/or windows. When you delete a timer, it is removed from the current keyed context.
deleteEventTimeTimer
在接口中 TimerService
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.