@Internal public class SimpleTimerService extends Object implements TimerService
TimerService
that uses a InternalTimerService
.Constructor and Description |
---|
SimpleTimerService(InternalTimerService<VoidNamespace> internalTimerService) |
Modifier and Type | Method and Description |
---|---|
long |
currentProcessingTime()
Returns the current processing time.
|
long |
currentWatermark()
Returns the current event-time watermark.
|
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<VoidNamespace> internalTimerService)
public long currentProcessingTime()
TimerService
currentProcessingTime
in interface TimerService
public long currentWatermark()
TimerService
currentWatermark
in interface 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
in interface 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
in interface TimerService
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.