Package org.atmosphere.cpr
Enum Class BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY
java.lang.Object
java.lang.Enum<BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY>
org.atmosphere.cpr.BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY
- All Implemented Interfaces:
Serializable,Comparable<BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY>,Constable
- Enclosing class:
BroadcasterLifeCyclePolicy
public static enum BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY
extends Enum<BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf there is noAtmosphereResourceassociated with the Broadcaster, release all resources.If there is noAtmosphereResourceassociated with the Broadcaster, release all resources, and destroy the broadcaster.Release all resources associated with the Broadcaster when the idle time expires.Release all resources associated with the Broadcaster when the idle time expires and destroy the Broadcaster.If there is noAtmosphereResourceassociated with the Broadcaster when the idle time expires, destroy the Broadcaster.Release all resources associated with the Broadcaster when the idle time expires.Never release or destroy theBroadcaster. -
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
-
IDLE
Release all resources associated with the Broadcaster when the idle time expires. SuspendedAtmosphereResourcewill NOT get resumed.Broadcaster.releaseExternalResources()will be invoked. -
IDLE_DESTROY
Release all resources associated with the Broadcaster when the idle time expires and destroy the Broadcaster. This operation removes the Broadcaster from it's associatedBroadcasterFactoryBroadcaster.destroy()will be invoked. SuspendedAtmosphereResourcewill NOT get resumed. -
IDLE_RESUME
Release all resources associated with the Broadcaster when the idle time expires. All associatedAtmosphereResourceWILL BE resumed and this broadcaster destroyed. -
EMPTY
If there is noAtmosphereResourceassociated with the Broadcaster, release all resources.Broadcaster.releaseExternalResources()will be invoked. -
EMPTY_DESTROY
If there is noAtmosphereResourceassociated with the Broadcaster, release all resources, and destroy the broadcaster. This operation removes the Broadcaster from its associatedBroadcasterFactoryBroadcaster.destroy()will be invoked -
IDLE_EMPTY_DESTROY
If there is noAtmosphereResourceassociated with the Broadcaster when the idle time expires, destroy the Broadcaster. This operation removes the Broadcaster from its associatedBroadcasterFactory.Broadcaster.destroy()will be invoked -
NEVER
Never release or destroy theBroadcaster.
-
-
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
-