Version

SequenceNumber

public class SequenceNumber
extends java.lang.Object
SequenceNumber is a utility class used to generate and manage sequential integer values, used for assigning unique SMPP sequence numbers to outbound PDUs.

Fields:

DEFAULT_VALUE, MAX_VALUE, MIN_VALUE

Constructor:

public SequenceNumber()
Initializes the sequence number using the default starting value.

public SequenceNumber(int initialValue)
    initialValue – The initial value from which sequence numbering should begin.
Initializes the sequence number with a specified starting value.

Methods:

int next() Returns the next sequence number and increments the internal counter. Wraps around if the maximum is exceeded.
int peek() Returns the current sequence number without incrementing.
void reset() Resets the sequence number to the default value.

Start innovating with Mobius

What's next? Let's talk!

Mobius Software

As a company you'll get:

  • Get started quickly

  • Support any business model

  • Join millions of businesses

Questions? websupport@mobius.com