Class PublishSequenceNumber (1.14.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
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