public class WSClientSessionPool extends Object implements IWSClientSessionPool
IWSClientSessionPool
interfaceConstructor and Description |
---|
WSClientSessionPool(IWSClientSessionManager sessionMgr,
AuthCredentials authCred)
Construct a new session pool
|
Modifier and Type | Method and Description |
---|---|
IWSClientSession |
createSession(IWSClientProxy clientProxy) |
AuthCredentials |
getAuthCredentials() |
String |
getHostURL()
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
|
protected IWSClientSession |
getNextAvailableSession(IWSClientProxy clientProxy) |
IWSClientSession |
getSession(IWSClientProxy clientProxy) |
IWSClientSessionManager |
getSessionManager() |
List<IWSClientSession> |
getSessions() |
void |
releaseSession(IWSClientSession session) |
void |
reset() |
void |
setAuthCredentials(AuthCredentials credentials) |
void |
setSessionManager(IWSClientSessionManager sessionManager) |
public WSClientSessionPool(IWSClientSessionManager sessionMgr, AuthCredentials authCred)
sessionMgr
- the IWSClientSessionManager
that will manage this session poolauthCred
- the AuthCredentials
to be used to authenticate sessions managed by this poolpublic IWSClientSession getSession(IWSClientProxy clientProxy)
getSession
in interface IWSClientSessionPool
public void releaseSession(IWSClientSession session)
releaseSession
in interface IWSClientSessionPool
protected IWSClientSession getNextAvailableSession(IWSClientProxy clientProxy)
public IWSClientSession createSession(IWSClientProxy clientProxy)
createSession
in interface IWSClientSessionPool
public AuthCredentials getAuthCredentials()
getAuthCredentials
in interface IWSClientSessionPool
public void setAuthCredentials(AuthCredentials credentials)
setAuthCredentials
in interface IWSClientSessionPool
public List<IWSClientSession> getSessions()
getSessions
in interface IWSClientSessionPool
public IWSClientSessionManager getSessionManager()
getSessionManager
in interface IWSClientSessionPool
public void setSessionManager(IWSClientSessionManager sessionManager)
setSessionManager
in interface IWSClientSessionPool
public String getHostURL()
IWSClientSessionPool
getHostURL
in interface IWSClientSessionPool
public void reset()
reset
in interface IWSClientSessionPool