Package com.saperion.ws.pool
Class CloseablePooledSession
- java.lang.Object
-
- com.saperion.ws.pool.CloseablePooledSession
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class CloseablePooledSession extends java.lang.Object implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description CloseablePooledSession(java.lang.String token, com.saperion.connector.pool.PooledSession pooledSession, com.lexmark.saperion.remote.common.authentication.Credentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
closedByRuntime()
void
closeExplicitly()
com.saperion.connector.SaClassicConnector
getConnector()
com.lexmark.saperion.remote.common.authentication.Credentials
getCredentials()
com.saperion.connector.pool.PooledSession
getPooledSession()
java.lang.String
getToken()
-
-
-
Method Detail
-
getConnector
public com.saperion.connector.SaClassicConnector getConnector()
-
getToken
public java.lang.String getToken()
-
getPooledSession
public com.saperion.connector.pool.PooledSession getPooledSession()
-
getCredentials
public com.lexmark.saperion.remote.common.authentication.Credentials getCredentials()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
closeExplicitly
public void closeExplicitly()
-
closedByRuntime
public boolean closedByRuntime()
-
-