Package org.occurrent.annotation
Enum Class Subscription.ResumeBehavior
- All Implemented Interfaces:
Serializable,Comparable<Subscription.ResumeBehavior>,Constable
- Enclosing class:
Subscription
Specifies how a subscription should be resumed once the application is restarted.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the default resume behavior of the underlying subscription model.Always start at the same position as specified by theSubscription.StartPosition. -
Method Summary
Modifier and TypeMethodDescriptionstatic Subscription.ResumeBehaviorReturns the enum constant of this class with the specified name.static Subscription.ResumeBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SAME_AS_START_AT
Always start at the same position as specified by theSubscription.StartPosition. I.e. even if there's a subscription position (checkpoint) stored for the subscription it'll be ignored on application restart and the subscription will resume from the specifiedSubscription.StartPosition. -
DEFAULT
Use the default resume behavior of the underlying subscription model. For example, if theSubscription.StartPositionis set toSubscription.StartPosition.BEGINNING_OF_TIME, andResumeBehavioris set toDEFAULT, then the subscription will start from the beginning of time the first time it's run, then on application restart, it'll continue from the last received event (the subscription position (checkpoint) for the subscription) on restart.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-