Class WSClientSessionPool
java.lang.Object
com.webmethods.caf.wsclient.session.impl.WSClientSessionPool
- All Implemented Interfaces:
IWSClientSessionPool
Default implementation of the
IWSClientSessionPool
interface-
Constructor Summary
ConstructorsConstructorDescriptionWSClientSessionPool
(IWSClientSessionManager sessionMgr, AuthCredentials authCred) Construct a new session pool -
Method Summary
Modifier and TypeMethodDescriptioncreateSession
(IWSClientProxy clientProxy) Get the target hostURL for this session pool NOTE: used for quick lookup of session pools that need to be invalidated if the web service endpoint beings throwing transport/connection errorsprotected IWSClientSession
getNextAvailableSession
(IWSClientProxy clientProxy) getSession
(IWSClientProxy clientProxy) void
releaseSession
(IWSClientSession session) void
reset()
void
setAuthCredentials
(AuthCredentials credentials) void
setSessionManager
(IWSClientSessionManager sessionManager)
-
Constructor Details
-
WSClientSessionPool
Construct a new session pool- Parameters:
sessionMgr
- theIWSClientSessionManager
that will manage this session poolauthCred
- theAuthCredentials
to be used to authenticate sessions managed by this pool
-
-
Method Details
-
getSession
- Specified by:
getSession
in interfaceIWSClientSessionPool
-
releaseSession
- Specified by:
releaseSession
in interfaceIWSClientSessionPool
-
getNextAvailableSession
-
createSession
- Specified by:
createSession
in interfaceIWSClientSessionPool
-
getAuthCredentials
- Specified by:
getAuthCredentials
in interfaceIWSClientSessionPool
-
setAuthCredentials
- Specified by:
setAuthCredentials
in interfaceIWSClientSessionPool
-
getSessions
- Specified by:
getSessions
in interfaceIWSClientSessionPool
-
getSessionManager
- Specified by:
getSessionManager
in interfaceIWSClientSessionPool
-
setSessionManager
- Specified by:
setSessionManager
in interfaceIWSClientSessionPool
-
getHostURL
Description copied from interface:IWSClientSessionPool
Get the target hostURL for this session pool NOTE: used for quick lookup of session pools that need to be invalidated if the web service endpoint beings throwing transport/connection errors- Specified by:
getHostURL
in interfaceIWSClientSessionPool
- Returns:
- the host URL that sessions in this pool are connecting to
-
reset
public void reset()- Specified by:
reset
in interfaceIWSClientSessionPool
-