Class SequentialSubscriptionIdGenerator
- java.lang.Object
-
- io.streamthoughts.azkarra.api.events.reactive.internal.SequentialSubscriptionIdGenerator
-
- All Implemented Interfaces:
SubscriptionIdGenerator
public class SequentialSubscriptionIdGenerator extends Object implements SubscriptionIdGenerator
Class that can be used to generate a sequentialSubscriptionId
.- Since:
- 0.8.0
-
-
Constructor Summary
Constructors Constructor Description SequentialSubscriptionIdGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongSubscriptionId
generateNext()
Generates the nextSubscriptionId
-
-
-
Method Detail
-
generateNext
public LongSubscriptionId generateNext()
Generates the nextSubscriptionId
- Specified by:
generateNext
in interfaceSubscriptionIdGenerator
- Returns:
- a new
SubscriptionId
.
-
-