Enum AbstractManagedPendingService.State
java.lang.Object
java.lang.Enum<AbstractManagedPendingService.State>
ru.progrm_jarvis.javacommons.service.AbstractManagedPendingService.State
- All Implemented Interfaces:
Serializable,Comparable<AbstractManagedPendingService.State>
- Enclosing class:
- AbstractManagedPendingService<O,
S, R>
protected static enum AbstractManagedPendingService.State
extends Enum<AbstractManagedPendingService.State>
States in which this service can be.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleancanClose()Flag indicating whether owned services can still beclosedbooleanFlag indicating whether newown-requestscan happenReturns the enum constant of this type with the specified name.static AbstractManagedPendingService.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PENDING
This service accepts new owners. -
READY
This service is ready to start thus not accepting any new owners. -
STARTED
This service is already started and no longer usable directly.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
canRequest
public boolean canRequest()Flag indicating whether newown-requestscan happen -
canClose
public boolean canClose()Flag indicating whether owned services can still beclosed
-