|
GemFire 6.6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gemstone.gemfire.cache.client.PoolManager
public final class PoolManager
Manages creation and access to connection pools
for clients.
To create a pool get a factory by calling createFactory()
.
To find an existing pool by name call find(String)
.
To get rid of all created pool call close()
.
Method Summary | |
---|---|
static void |
close()
Unconditionally destroys all created pools that are in this manager. |
static void |
close(boolean keepAlive)
Unconditionally destroys all created pools that are in this manager. |
static PoolFactory |
createFactory()
Creates a new pool factory ,
which is used to configure and create new Pool s. |
static Pool |
find(Region<?,?> region)
Find the pool used by the given region. |
static Pool |
find(String name)
Find by name an existing connection pool returning the existing pool or null if it does not exist. |
static Map<String,Pool> |
getAll()
Returns a map containing all the pools in this manager. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PoolFactory createFactory()
pool factory
,
which is used to configure and create new Pool
s.
public static Pool find(String name)
null
if it does not exist.
name
- the name of the connection pool
null
if it does not exist.public static Map<String,Pool> getAll()
Pool
instances.
The map contains the pools that this manager knows of at the time of this call. The map is free to be changed without affecting this manager.
public static void close(boolean keepAlive)
keepAlive
- whether the server should keep the durable client's subscriptions alive for the durable-client-timeout
.for a description of durable-client-timeout
.
public static Pool find(Region<?,?> region)
region
- The region that is using the pool.
null
if the region does
not have a pool.public static void close()
|
GemFire 6.6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |