Trait

com.twitter.finatra.kafkastreams.transformer.stores

PersistentTimers

Related Doc: package stores

Permalink

trait PersistentTimers extends OnWatermark with OnInit

Per-Key Persistent Timers inspired by Flink's ProcessFunction: https://ci.apache.org/projects/flink/flink-docs-stable/dev/stream/operators/process_function.html

Annotations
@Beta()
Note

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

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PersistentTimers
  2. OnInit
  3. OnWatermark
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getKeyValueStore[KK, VV](name: String)(implicit arg0: ClassTag[KK]): FinatraKeyValueStore[KK, VV]

    Permalink
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def getPersistentTimerStore[TimerKey](timerStoreName: String, onTimer: (Time, TimerMetadata, TimerKey) ⇒ Unit, punctuationType: PunctuationType, maxTimerFiresPerWatermark: Int = 10000): PersistentTimerStore[TimerKey]

    Permalink

    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.

    TimerKey

    The type of the key for each timer

    timerStoreName

    The name of the timerstore

    onTimer

    A function that is called when the timer is triggered

    punctuationType

    Must be STREAM_TIME, WALL_CLOCK_TIME is not supported

    maxTimerFiresPerWatermark

    Maximum number of timers can can fire per watermark event

    Attributes
    protected
  11. def getPersistentTimerValueStore[TimerKey, TimerValue](timerStoreName: String, onTimer: (Time, TimerMetadata, TimerKey, TimerValue) ⇒ Unit, punctuationType: PunctuationType, maxTimerFiresPerWatermark: Int = 10000): PersistentTimerValueStore[TimerKey, TimerValue]

    Permalink

    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.

    TimerKey

    The type of the key for each timer

    TimerValue

    The type of the value stored for each timer

    timerStoreName

    The name of the timerstore, created seperately

    onTimer

    A function that is called when the timer is triggered

    punctuationType

    Must be STREAM_TIME, WALL_CLOCK_TIME is not supported

    maxTimerFiresPerWatermark

    Maximum number of timers can can fire per watermark event

    Attributes
    protected
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def onInit(): Unit

    Permalink
    Definition Classes
    PersistentTimersOnInit
  18. final def onWatermark(watermark: Watermark): Unit

    Permalink
    Definition Classes
    PersistentTimersOnWatermark
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from OnInit

Inherited from OnWatermark

Inherited from AnyRef

Inherited from Any

Ungrouped