public interface STSClientPool
STSClient
s.Modifier and Type | Method and Description |
---|---|
boolean |
configExists(STSClientConfig config)
Checks whether given config has already sub pool of clients created.
|
void |
createPool(int initialNumberOfClients,
STSClientConfig config)
This method initializes sub pool of clients by given configuration data and returns client from that pool.
|
void |
createPool(int initialNumberOfClients,
STSClientCreationCallBack callBack)
This method initializes sub pool of clients by given configuration data.
|
void |
createPool(STSClientConfig config)
This method initializes sub pool of clients by given configuration data and returns client from that pool.
|
void |
destroyPool(String moduleName)
Destroy all the pools attached to given module name.
|
void |
destroyPool(STSClientConfig config)
Destroys client sub pool denoted by given config.
|
STSClient |
getClient(STSClientConfig config)
Get STSClient from sub pool denoted by config.
|
void |
returnClient(STSClient stsClient)
Returns given
STSClient back to the sub pool of clients. |
void createPool(STSClientConfig config)
config
- to construct the pool of clientsvoid createPool(int initialNumberOfClients, STSClientConfig config)
initialNumberOfClients
- initial number of clients in the poolconfig
- to construct the pool of clientsvoid createPool(int initialNumberOfClients, STSClientCreationCallBack callBack)
initialNumberOfClients
- initial number of clients in the poolcallBack
- which provide configurationvoid destroyPool(STSClientConfig config)
config
- STSClientConfiguration
to find client sub pool to destroyvoid destroyPool(String moduleName)
moduleName
- module name to destroy pools or "" or null to destroy default module's pools.void returnClient(STSClient stsClient)
STSClient
back to the sub pool of clients.
Sub pool is determined automatically from client configuration.{@link
- STSClient} to return back to the sub pool of clientsSTSClient getClient(STSClientConfig config)
config
- STSClientConfiguration
to find client sub poolSTSClient
from the sub pool of clientsboolean configExists(STSClientConfig config)
config
- STSClientConfiguration
to find client sub poolCopyright © 2017 JBoss by Red Hat. All rights reserved.