Package org.occurrent.annotation
Enum Class Subscription.StartPosition
- All Implemented Interfaces:
Serializable,Comparable<Subscription.StartPosition>,Constable
- Enclosing class:
Subscription
A set of predefined start positions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStart this subscription from the first event in the event storeStart this subscription using the default behavior of the subscription model.Start this subscription from "NOW" -
Method Summary
Modifier and TypeMethodDescriptionstatic Subscription.StartPositionReturns the enum constant of this class with the specified name.static Subscription.StartPosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGINNING_OF_TIME
Start this subscription from the first event in the event store -
NOW
Start this subscription from "NOW" -
DEFAULT
Start this subscription using the default behavior of the subscription model. Typically, this means that it'll start from "NOW", unless the subscription has already been started before, in which case the subscription will be started from its last know position.
-
-
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
-