public class PublishOptions
extends java.lang.Object
Builder
.Modifier and Type | Class and Description |
---|---|
static class |
PublishOptions.Builder
PublishOptions are created using a Builder.
|
Modifier and Type | Field and Description |
---|---|
static java.time.Duration |
DEFAULT_TIMEOUT
Use this variable for timeout in publish options.
|
static java.lang.String |
PROP_PUBLISH_TIMEOUT
Property used to configure a builder from a Properties object..
|
static java.lang.String |
PROP_STREAM_NAME
Property used to configure a builder from a Properties object.
|
static long |
UNSET_LAST_SEQUENCE
Use this variable to unset a sequence number in publish options.
|
static java.lang.String |
UNSET_STREAM
Use this variable to unset a stream in publish options.
|
Modifier and Type | Method and Description |
---|---|
static PublishOptions.Builder |
builder()
Creates a builder for the publish options.
|
java.lang.String |
getExpectedLastMsgId()
Gets the expected last message ID in the stream.
|
long |
getExpectedLastSequence()
Gets the expected last sequence number of the stream.
|
long |
getExpectedLastSubjectSequence()
Gets the expected last subject sequence number of the stream.
|
java.lang.String |
getExpectedStream()
Gets the expected stream.
|
java.lang.String |
getMessageId()
Gets the message ID
|
java.lang.String |
getStream()
Gets the name of the stream.
|
java.time.Duration |
getStreamTimeout()
Gets the publish timeout.
|
public static final java.time.Duration DEFAULT_TIMEOUT
public static final java.lang.String UNSET_STREAM
public static final long UNSET_LAST_SEQUENCE
public static final java.lang.String PROP_STREAM_NAME
public static final java.lang.String PROP_PUBLISH_TIMEOUT
public java.lang.String getStream()
public java.time.Duration getStreamTimeout()
public java.lang.String getExpectedStream()
public java.lang.String getExpectedLastMsgId()
public long getExpectedLastSequence()
public long getExpectedLastSubjectSequence()
public java.lang.String getMessageId()
public static PublishOptions.Builder builder()