Name of a load-balance group. When there are multiple streams in the same group, messages will be balanced among them.
Sets the stream replication factor equal to the current number of servers in the cluster.
Unique stream name.
Determines how many partitions to create for a stream. If 0
,
this will behave as a stream with a single partition. If this is not
set, it defaults to 1
.
Controls the number of servers to replicate a stream to. For
example a value of 1
would mean only 1 server would have the data,
and a value of 3
would be 3 servers would have it. If this is not set, it
defaults to 1
. A value of -1
will signal to the server to set the
replication factor equal to the current number of servers in the
cluster.
Use in subscribe when you want to read messages from a particular offset.
Control where to begin consuming from in the stream.
Defaults to LATEST
.
Available positions are EARLIEST
, LATEST
, NEW_ONLY
,
OFFSET
(startOffset has to be set) & TIMESTAMP
(startTimestamp has to be set).
EARLIEST
sets the subscription start position to the earliest message received in the stream.LATEST
sets the subscription start position to the last message received in the stream.NEW_ONLY
sets the subscription start position to the timestamp when the subscription began.OFFSET
sets the subscription start position to a specific offset.TIMESTAMP
sets the subscription start position to a specific timestamp.Use in subscribe when you want to read messages from a particular timestamp. Timestamp has to be specified as nanoseconds since UNIX epoch time.
Stream subject.
Liftbridge stream options.