Package org.apache.kafka.streams.state
Class DslWindowParams
java.lang.Object
org.apache.kafka.streams.state.DslWindowParams
DslWindowParams
is a wrapper class for all parameters that function
as inputs to DslStoreSuppliers.windowStore(DslWindowParams)
.-
Constructor Summary
ConstructorDescriptionDslWindowParams
(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, boolean isTimestamped) -
Method Summary
-
Constructor Details
-
DslWindowParams
public DslWindowParams(String name, Duration retentionPeriod, Duration windowSize, boolean retainDuplicates, EmitStrategy emitStrategy, boolean isSlidingWindow, boolean isTimestamped) - Parameters:
name
- name of the store (cannot benull
)retentionPeriod
- length of time to retain data in the store (cannot be negative) (note that the retention period must be at least long enough to contain the windowed data's entire life cycle, from window-start through window-end, and for the entire grace period)windowSize
- size of the windows (cannot be negative)retainDuplicates
- whether to retain duplicates. Turning this on will automatically disable caching and means that null values will be ignored.emitStrategy
- defines how to emit resultsisSlidingWindow
- whether the requested store is a sliding windowisTimestamped
- whether the requested store should be timestamped (seeTimestampedWindowStore
-
-
Method Details
-
name
-
retentionPeriod
-
windowSize
-
retainDuplicates
public boolean retainDuplicates() -
emitStrategy
-
isSlidingWindow
public boolean isSlidingWindow() -
isTimestamped
public boolean isTimestamped() -
equals
-
hashCode
public int hashCode() -
toString
-