Package org.atmosphere.cpr
Enum Class AtmosphereResourceImpl.LifecycleState
java.lang.Object
java.lang.Enum<AtmosphereResourceImpl.LifecycleState>
org.atmosphere.cpr.AtmosphereResourceImpl.LifecycleState
- All Implemented Interfaces:
Serializable,Comparable<AtmosphereResourceImpl.LifecycleState>,Constable
- Enclosing class:
AtmosphereResourceImpl
public static enum AtmosphereResourceImpl.LifecycleState
extends Enum<AtmosphereResourceImpl.LifecycleState>
Explicit lifecycle states for an
AtmosphereResource, replacing the previous
collection of independent AtomicBoolean fields that tracked lifecycle implicitly.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAtmosphereResourceImpl.cancel()called successfully.Resource is in the closing phase (enteredcompleteLifecycle).Initial state after construction orAtmosphereResourceImpl.reset().Resource marked out of scope due to IO error or external invalidation.AtmosphereResourceImpl.resume()called successfully.AtmosphereResourceImpl.suspend()called successfully. -
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
-
CREATED
Initial state after construction orAtmosphereResourceImpl.reset(). -
SUSPENDED
AtmosphereResourceImpl.suspend()called successfully. -
RESUMED
AtmosphereResourceImpl.resume()called successfully. -
CLOSING
Resource is in the closing phase (enteredcompleteLifecycle). -
CANCELLED
AtmosphereResourceImpl.cancel()called successfully. -
DISCONNECTED
Resource marked out of scope due to IO error or external invalidation.
-
-
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
-