Package com.saperion.connector.pool
Class PooledSession
- java.lang.Object
-
- com.saperion.connector.pool.PooledSession
-
- All Implemented Interfaces:
com.saperion.connector.authentication.Session
,java.io.Serializable
public class PooledSession extends java.lang.Object implements com.saperion.connector.authentication.Session
A user's session in the pool. Contains aSaClassicConnector
instance.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PooledSession(com.saperion.connector.authentication.Session session, SaClassicConnector connector)
Creates a new pooled session.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SaClassicConnector
connection()
com.saperion.connector.authentication.Session
getDelegate()
java.lang.String
id()
com.saperion.connector.authentication.SessionInfo
info()
com.saperion.connector.authentication.LicenseType
license()
java.lang.String
tenant()
int
token()
java.lang.String
username()
-
-
-
Constructor Detail
-
PooledSession
public PooledSession(com.saperion.connector.authentication.Session session, SaClassicConnector connector)
Creates a new pooled session.- Parameters:
session
- the session used as delegateconnector
- theSaClassicConnector
to be used in the pooled session
-
-
Method Detail
-
token
public int token()
- Specified by:
token
in interfacecom.saperion.connector.authentication.Session
-
username
public java.lang.String username()
- Specified by:
username
in interfacecom.saperion.connector.authentication.Session
-
tenant
public java.lang.String tenant()
- Specified by:
tenant
in interfacecom.saperion.connector.authentication.Session
-
license
public com.saperion.connector.authentication.LicenseType license()
- Specified by:
license
in interfacecom.saperion.connector.authentication.Session
-
id
public java.lang.String id()
- Specified by:
id
in interfacecom.saperion.connector.authentication.Session
-
info
public com.saperion.connector.authentication.SessionInfo info()
- Specified by:
info
in interfacecom.saperion.connector.authentication.Session
-
connection
public SaClassicConnector connection()
- Returns:
- the
SaClassicConnector
instance used in this pooled session
-
getDelegate
public com.saperion.connector.authentication.Session getDelegate()
-
-