Creates a key-only timer store.
Creates a key-only timer store. The timer store is implemented using a PersistentTimerValueStore, but the values stored are just zero-length byte arrays.
The type of the key for each timer
The name of the timerstore
A function that is called when the timer is triggered
Must be STREAM_TIME, WALL_CLOCK_TIME is not supported
Maximum number of timers can can fire per watermark event
Creates a key/value timer store.
Creates a key/value timer store. When addTimer is called on the timer store with
a time, key, and value, a timer is stored in the store which triggered as the specified
time. The specified onTimer
function is then called with the key and value.
The type of the key for each timer
The type of the value stored for each timer
The name of the timerstore, created seperately
A function that is called when the timer is triggered
Must be STREAM_TIME, WALL_CLOCK_TIME is not supported
Maximum number of timers can can fire per watermark event
Per-Key Persistent Timers inspired by Flink's ProcessFunction: https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/operators/process_function.html
Timers that fire at the same time MAY NOT fire in the order which they were added
,Timers are based on a sorted RocksDB KeyValueStore