public static final class StreamConfiguration.StreamConfigurationBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
StreamConfiguration |
build() |
StreamConfiguration.StreamConfigurationBuilder |
retentionPolicy(RetentionPolicy retentionPolicy)
API to return retention policy.
|
StreamConfiguration.StreamConfigurationBuilder |
scalingPolicy(ScalingPolicy scalingPolicy)
API to return scaling policy.
|
StreamConfiguration.StreamConfigurationBuilder |
timestampAggregationTimeout(long timestampAggregationTimeout)
The duration after the last call to
EventStreamWriter.noteTime(long) which the
timestamp should be considered valid before it is forgotten. |
java.lang.String |
toString() |
public StreamConfiguration.StreamConfigurationBuilder scalingPolicy(ScalingPolicy scalingPolicy)
scalingPolicy
- The Stream Scaling policy.this
.public StreamConfiguration.StreamConfigurationBuilder retentionPolicy(RetentionPolicy retentionPolicy)
retentionPolicy
- The Stream Retention policy.this
.public StreamConfiguration.StreamConfigurationBuilder timestampAggregationTimeout(long timestampAggregationTimeout)
EventStreamWriter.noteTime(long)
which the
timestamp should be considered valid before it is forgotten. Meaning that after this long of
not calling EventStreamWriter.noteTime(long)
the writer will be forgotten.
If there are no known writers, readers that call EventStreamReader.getCurrentTimeWindow(Stream)
will receive a `null` when they are at the corresponding position in the stream.timestampAggregationTimeout
- The duration after the last call to EventStreamWriter.noteTime(long)
which the timestamp should be considered valid before it is forgotten.
be considered valid before it is forgotten.this
.public StreamConfiguration build()
public java.lang.String toString()
toString
in class java.lang.Object