Package org.atmosphere.cpr
Enum Class Action.TYPE
- All Implemented Interfaces:
Serializable,Comparable<Action.TYPE>,Constable
- Enclosing class:
Action
The action's type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCancel the current connection/response and close it.Continue the processing of the request.Mark this action as created.Mark this action as destroyed.Resume the underlying connection/response.Skip the invocation ofAtmosphereHandlerand interrupt the invocation of allAtmosphereInterceptor.SUSPEND the underlying connection/response.Fake suspend for WebSocket MessageTimeout the underlying connection/response and invoke theAtmosphereResource.resume(). -
Method Summary
Modifier and TypeMethodDescriptionstatic Action.TYPEReturns the enum constant of this class with the specified name.static Action.TYPE[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUSPEND
SUSPEND the underlying connection/response. The request will be dispatched to framework/container viaAtmosphereHandler.onStateChange(AtmosphereResourceEvent) -
RESUME
Resume the underlying connection/response. The request will be dispatched to framework/container viaAtmosphereHandler.onStateChange(AtmosphereResourceEvent) -
TIMEOUT
Timeout the underlying connection/response and invoke theAtmosphereResource.resume(). The request will be dispatched to framework/container viaAtmosphereHandler.onStateChange(AtmosphereResourceEvent) -
CANCELLED
Cancel the current connection/response and close it. The request will NOT be dispatched to framework/container viaAtmosphereHandler -
CONTINUE
Continue the processing of the request. The request will still be dispatched to framework/container viaAtmosphereHandler -
CREATED
Mark this action as created. The request will still be dispatched to framework/container viaAtmosphereHandler -
DESTROYED
Mark this action as destroyed. All objects associated with this action will be candidate for being garbage collected. -
SUSPEND_MESSAGE
Fake suspend for WebSocket Message -
SKIP_ATMOSPHEREHANDLER
Skip the invocation ofAtmosphereHandlerand interrupt the invocation of allAtmosphereInterceptor.
-
-
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
-