org.picketlink.identity.federation.bindings.stspool
public final class STSClientPoolFactory extends Object implements org.picketlink.identity.federation.core.wstrust.STSClientPool
STSClient
s.Modifier and Type | Method and Description |
---|---|
boolean |
configExists(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
Checks whether given config has already sub pool of clients created.
|
void |
createPool(int initialNumberOfClients,
org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
This method initializes sub pool of clients by given configuration data and returns client from that pool.
|
void |
createPool(int initialNumberOfClients,
org.picketlink.identity.federation.core.wstrust.STSClientCreationCallBack callBack)
This method initializes sub pool of clients by given configuration data.
|
void |
createPool(org.picketlink.identity.federation.core.wstrust.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(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
Destroys client sub pool denoted by given config.
|
org.picketlink.identity.federation.core.wstrust.STSClient |
getClient(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
Get STSClient from sub pool denoted by config.
|
static org.picketlink.identity.federation.core.wstrust.STSClientPool |
getPoolInstance()
Get instance of
STSClientPool . |
void |
returnClient(org.picketlink.identity.federation.core.wstrust.STSClient stsClient)
Returns given
STSClient back to the sub pool of clients. |
public static org.picketlink.identity.federation.core.wstrust.STSClientPool getPoolInstance()
STSClientPool
.STSClientPool
instancepublic void createPool(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
createPool
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
config
- to construct the pool of clientspublic void createPool(int initialNumberOfClients, org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
createPool
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
initialNumberOfClients
- initial number of clients in the poolconfig
- to construct the pool of clientspublic void createPool(int initialNumberOfClients, org.picketlink.identity.federation.core.wstrust.STSClientCreationCallBack callBack)
createPool
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
initialNumberOfClients
- initial number of clients in the poolcallBack
- which provide configurationpublic void destroyPool(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
destroyPool
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
config
- STSClientConfiguration
to find client sub pool to destroypublic void destroyPool(String moduleName)
destroyPool
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
moduleName
- module name to destroy pools or "" or null to destroy default module's pools.public void returnClient(org.picketlink.identity.federation.core.wstrust.STSClient stsClient)
STSClient
back to the sub pool of clients.
Sub pool is determined automatically from client configuration.returnClient
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
{@link
- STSClient} to return back to the sub pool of clientspublic org.picketlink.identity.federation.core.wstrust.STSClient getClient(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
getClient
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
config
- STSClientConfiguration
to find client sub poolSTSClient
from the sub pool of clientspublic boolean configExists(org.picketlink.identity.federation.core.wstrust.STSClientConfig config)
configExists
in interface org.picketlink.identity.federation.core.wstrust.STSClientPool
config
- STSClientConfiguration
to find client sub poolCopyright © 2015 JBoss by Red Hat. All Rights Reserved.