public static enum BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY extends Enum<BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY>
Enum Constant and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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.
|
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 invokedpublic static final BroadcasterLifeCyclePolicy.ATMOSPHERE_RESOURCE_POLICY NEVER
Broadcaster
.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 nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.