|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY>
org.atmosphere.cpr.BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY
public static enum BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY
| Enum Constant Summary | |
|---|---|
EMPTY
If there is no AtmosphereResource associated with the Broadcaster,
release all resources. |
|
EMPTY_DESTROY
If there is no AtmosphereResource associated with the Broadcaster, release all resources,
and destroy the broadcaster. |
|
IDLE
Release all resources associated with the Broadcaster when the idle time expires. |
|
IDLE_DESTROY
Release all resources associated with the Broadcaster when the idle time expires and destroy the Broadcaster. |
|
IDLE_RESUME
Release all resources associated with the Broadcaster when the idle time expires. |
|
NEVER
Never release or destroy the Broadcaster. |
|
| Method Summary | |
|---|---|
static BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY IDLE
AtmosphereResource
will NOT get resumed.
Broadcaster.releaseExternalResources() will be invoked.
public static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY IDLE_DESTROY
BroadcasterFactory
Broadcaster.destroy() will be invoked. Suspended AtmosphereResource
will NOT get resumed.
public static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY IDLE_RESUME
AtmosphereResource
WILL BE resumed and this broadcaster destroyed.
public static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY EMPTY
AtmosphereResource associated with the Broadcaster,
release all resources.
Broadcaster.releaseExternalResources() will be invoked.
public static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY EMPTY_DESTROY
AtmosphereResource associated with the Broadcaster, release all resources,
and destroy the broadcaster. This operation removes the Broadcaster from its associated BroadcasterFactory
Broadcaster.destroy() will be invoked
public static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY NEVER
Broadcaster.
| Method Detail |
|---|
public static BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY[] values()
for (BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY c : BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY.values()) System.out.println(c);
public static BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||