sequence¶
-
class
naz.sequence.BaseSequenceGenerator[source]¶ Bases:
abc.ABCInterface that must be implemented to satisfy naz’s sequence generator. User implementations should inherit this class and implement the
next_sequencemethods 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.
-
class
naz.sequence.SimpleSequenceGenerator[source]¶ Bases:
naz.sequence.BaseSequenceGeneratorThis is an implementation of BaseSequenceGenerator.