Package com.sodius.oslc.server.trs.model
Enum Class TrackedResourceCollector.EventCollectorStrategy
java.lang.Object
java.lang.Enum<TrackedResourceCollector.EventCollectorStrategy>
com.sodius.oslc.server.trs.model.TrackedResourceCollector.EventCollectorStrategy
- All Implemented Interfaces:
Serializable,Comparable<TrackedResourceCollector.EventCollectorStrategy>,java.lang.constant.Constable
- Enclosing interface:
TrackedResourceCollector
public static enum TrackedResourceCollector.EventCollectorStrategy
extends Enum<TrackedResourceCollector.EventCollectorStrategy>
Determines when to collect resource events.
- Since:
- 3.7.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates thatcollectResourceEventsAfteris to call at startup time and each time the TRS change log is accessed.Indicates thatcollectResourceEventsAfteris never to call.Indicates thatcollectResourceEventsAfteris to call only at startup time. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Indicates thatcollectResourceEventsAfteris never to call. It is used by TRS implementations that catch resource events only through listeners and have the same lifecycle as the host application. -
STARTUP
Indicates thatcollectResourceEventsAfteris to call only at startup time. It is used by TRS implementations that catch resource events through listeners, but can miss some of them before startup time. This can be the case when implementation is not started right away along the host application, or it can be disabled for a period of time. CallingcollectResourceEventsAfterhelps at discovering events that occurred during that time window. -
ALWAYS
Indicates thatcollectResourceEventsAfteris to call at startup time and each time the TRS change log is accessed. It is used by TRS implementations that collect resource events primarily using queries.
-
-
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
-