sequence

class naz.sequence.BaseSequenceGenerator[source]

Bases: abc.ABC

Interface that must be implemented to satisfy naz’s sequence generator. User implementations should inherit this class and implement the next_sequence methods with the type signatures shown.

In SMPP, sequence_number is an Integer which allows SMPP requests and responses to be correlated. The sequence_number should increase monotonically and ought to be in the range 1 to 2,147,483,647

The sequence_number should wrap around when it reaches the maximum allowed by SMPP specification.

abstract next_sequence()[source]

method that returns a monotonically increasing Integer in the range 1 to 2,147,483,647

Return type

int

class naz.sequence.SimpleSequenceGenerator[source]

Bases: naz.sequence.BaseSequenceGenerator

This is an implementation of BaseSequenceGenerator.

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

Return type

None

next_sequence()[source]

method that returns a monotonically increasing Integer in the range 1 to 2,147,483,647

Return type

int