Package com.sodius.oslc.server.trs.model
Enum 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>
- Enclosing interface:
- TrackedResourceCollector
public static enum TrackedResourceCollector.EventCollectorStrategy extends Enum<TrackedResourceCollector.EventCollectorStrategy>
Determines when to collect resource events.- Since:
- 3.7.0
- See Also:
TrackedResourceCollector.getEventCollectorStrategy()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Indicates thatcollectResourceEventsAfter
is to call at startup time and each time the TRS change log is accessed.NEVER
Indicates thatcollectResourceEventsAfter
is never to call.STARTUP
Indicates thatcollectResourceEventsAfter
is to call only at startup time.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrackedResourceCollector.EventCollectorStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static TrackedResourceCollector.EventCollectorStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NEVER
public static final TrackedResourceCollector.EventCollectorStrategy NEVER
Indicates thatcollectResourceEventsAfter
is 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
public static final TrackedResourceCollector.EventCollectorStrategy STARTUP
Indicates thatcollectResourceEventsAfter
is 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. CallingcollectResourceEventsAfter
helps at discovering events that occurred during that time window.
-
ALWAYS
public static final TrackedResourceCollector.EventCollectorStrategy ALWAYS
Indicates thatcollectResourceEventsAfter
is 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 Detail
-
values
public static TrackedResourceCollector.EventCollectorStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TrackedResourceCollector.EventCollectorStrategy c : TrackedResourceCollector.EventCollectorStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrackedResourceCollector.EventCollectorStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-