Class PublishSequenceNumber (1.11.2)

public abstract class PublishSequenceNumber implements Serializable

A sequence number for a published message, for implementing publish idempotency.

Inheritance

java.lang.Object > PublishSequenceNumber

Implements

Serializable

Static Fields

FIRST

public static final PublishSequenceNumber FIRST

The sequence number that should be set for the first message in a publisher session.

Field Value
TypeDescription
PublishSequenceNumber

Static Methods

of(long sequenceNumber)

public static PublishSequenceNumber of(long sequenceNumber)

Create a publish sequence number from its long value.

Parameter
NameDescription
sequenceNumberlong
Returns
TypeDescription
PublishSequenceNumber

Constructors

PublishSequenceNumber()

public PublishSequenceNumber()

Methods

next()

public PublishSequenceNumber next()

Returns the next sequence number that follows the current.

Returns
TypeDescription
PublishSequenceNumber

value()

public abstract long value()

The long value of this publish sequence number.

Returns
TypeDescription
long