Package io.hstream
Class Stream.Builder
- java.lang.Object
-
- io.hstream.Stream.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream.Builder
backlogDuration(int backlogDuration)
Stream
build()
Stream.Builder
createdTime(Instant createdTime)
Stream.Builder
replicationFactor(int replicationFactor)
Stream.Builder
shardCount(int shardCount)
Stream.Builder
streamName(String streamName)
-
-
-
Method Detail
-
streamName
public Stream.Builder streamName(String streamName)
- Parameters:
streamName
- required, the name of the stream- Returns:
- Stream.Builder instance
-
replicationFactor
public Stream.Builder replicationFactor(int replicationFactor)
- Parameters:
replicationFactor
- optional(default: 1), replication factor of the stream- Returns:
- Stream.Builder instance
-
backlogDuration
public Stream.Builder backlogDuration(int backlogDuration)
- Parameters:
backlogDuration
- optional(default: 3600 * 24), backlog duration(in seconds) of the stream- Returns:
- Stream.Builder instance
-
shardCount
public Stream.Builder shardCount(int shardCount)
- Parameters:
shardCount
- optional(default: 1), number of shards in the stream- Returns:
- Stream.Builder instance
-
createdTime
public Stream.Builder createdTime(Instant createdTime)
-
build
public Stream build()
-
-