public class UnboundedApachePoolableProvider extends Object implements PoolableProvider<Broadcaster>
Broadcaster| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.pool2.impl.AbandonedConfig |
abandonedConfig |
protected AtmosphereConfig |
config |
protected org.apache.commons.pool2.impl.GenericObjectPool<Broadcaster> |
genericObjectPool |
protected org.apache.commons.pool2.impl.GenericObjectPoolConfig |
poolConfig |
| Constructor and Description |
|---|
UnboundedApachePoolableProvider() |
| Modifier and Type | Method and Description |
|---|---|
Broadcaster |
borrowBroadcaster(Object id)
Return a
Broadcaster |
void |
configure(AtmosphereConfig config)
Configure an AtmosphereFramework object.
|
protected void |
configureGenericObjectPoolConfig() |
PoolableProvider |
returnBroadcaster(Broadcaster b)
Return a destroyed
Broadcaster instance. |
protected org.apache.commons.pool2.impl.GenericObjectPool<Broadcaster> genericObjectPool
protected AtmosphereConfig config
protected final org.apache.commons.pool2.impl.GenericObjectPoolConfig poolConfig
protected final org.apache.commons.pool2.impl.AbandonedConfig abandonedConfig
public void configure(AtmosphereConfig config)
AtmosphereConfigAwareconfigure in interface AtmosphereConfigAwareconfig - AtmosphereConfigprotected void configureGenericObjectPoolConfig()
public Broadcaster borrowBroadcaster(Object id)
PoolableProviderBroadcasterborrowBroadcaster in interface PoolableProvider<Broadcaster>id - the name of the BroadcasterBroadcasterpublic PoolableProvider returnBroadcaster(Broadcaster b)
PoolableProviderBroadcaster instance.returnBroadcaster in interface PoolableProvider<Broadcaster>b - BroadcasterCopyright © 2015. All Rights Reserved.