public final class PoolManager extends Object
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()
.
Modifier and Type | Method and Description |
---|---|
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.
|
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 poolnull
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()