Packages

object TestGroupState

Source
TestGroupState.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestGroupState
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def create[S](optionalState: Optional[S], timeoutConf: GroupStateTimeout, batchProcessingTimeMs: Long, eventTimeWatermarkMs: Optional[Long], hasTimedOut: Boolean): TestGroupState[S]

    Creates TestGroupState instances for general testing purposes.

    Creates TestGroupState instances for general testing purposes.

    optionalState

    Optional value of the state.

    timeoutConf

    Type of timeout configured. Based on this, different operations will be supported.

    batchProcessingTimeMs

    Processing time of current batch, used to calculate timestamp for processing time timeouts.

    eventTimeWatermarkMs

    Optional value of event time watermark in ms. Set as Optional.empty if watermark is not present. Otherwise, event time watermark should be a positive long and the timestampMs set through setTimeoutTimestamp() cannot be less than eventTimeWatermarkMs.

    hasTimedOut

    Whether the key for which this state wrapped is being created is getting timed out or not.

    returns

    a TestGroupState instance built with the user specified configs.

    Annotations
    @throws( ... ) @throws( ... ) @throws( ... )