object TestGroupState
- Source
- TestGroupState.scala
- Alphabetic
- By Inheritance
- TestGroupState
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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 throughsetTimeoutTimestamp()
cannot be less thaneventTimeWatermarkMs
.- 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( ... )