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.
Type | Description |
PublishSequenceNumber |
Static Methods
of(long sequenceNumber)
public static PublishSequenceNumber of(long sequenceNumber)
Create a publish sequence number from its long value.
Name | Description |
sequenceNumber | long |
Type | Description |
PublishSequenceNumber |
Constructors
PublishSequenceNumber()
public PublishSequenceNumber()
Methods
next()
public PublishSequenceNumber next()
Returns the next sequence number that follows the current.
Type | Description |
PublishSequenceNumber |
value()
public abstract long value()
The long value of this publish sequence number.
Type | Description |
long |