@PublicEvolving
public interface TimerService
限定符和类型 | 字段和说明 |
---|---|
static String |
UNSUPPORTED_DELETE_TIMER_MSG
Error string for
UnsupportedOperationException on deleting timers. |
static String |
UNSUPPORTED_REGISTER_TIMER_MSG
Error string for
UnsupportedOperationException on registering timers. |
限定符和类型 | 方法和说明 |
---|---|
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.
|
static final String UNSUPPORTED_REGISTER_TIMER_MSG
UnsupportedOperationException
on registering timers.static final String UNSUPPORTED_DELETE_TIMER_MSG
UnsupportedOperationException
on deleting timers.long currentProcessingTime()
long currentWatermark()
void registerProcessingTimeTimer(long time)
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.
void registerEventTimeTimer(long time)
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.
void deleteProcessingTimeTimer(long time)
Timers can internally be scoped to keys and/or windows. When you delete a timer, it is removed from the current keyed context.
void deleteEventTimeTimer(long time)
Timers can internally be scoped to keys and/or windows. When you delete a timer, it is removed from the current keyed context.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.