public abstract class PublishSequenceNumber implements Serializable
A sequence number for a published message, for implementing publish idempotency.
Implements
SerializableStatic Fields
FIRST
public static final PublishSequenceNumber FIRST
The sequence number that should be set for the first message in a publisher session.
Field Value | |
---|---|
Type | Description |
PublishSequenceNumber |
Static Methods
of(long sequenceNumber)
public static PublishSequenceNumber of(long sequenceNumber)
Create a publish sequence number from its long value.
Parameter | |
---|---|
Name | Description |
sequenceNumber |
long |
Returns | |
---|---|
Type | Description |
PublishSequenceNumber |
Constructors
PublishSequenceNumber()
public PublishSequenceNumber()
Methods
next()
public PublishSequenceNumber next()
Returns the next sequence number that follows the current.
Returns | |
---|---|
Type | Description |
PublishSequenceNumber |
value()
public abstract long value()
The long value of this publish sequence number.
Returns | |
---|---|
Type | Description |
long |