Class 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 a SaClassicConnector instance.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.saperion.connector.authentication.Session

        com.saperion.connector.authentication.Session.SimpleSession
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PooledSession

        public PooledSession​(com.saperion.connector.authentication.Session session,
                             SaClassicConnector connector)
        Creates a new pooled session.
        Parameters:
        session - the session used as delegate
        connector - the SaClassicConnector to be used in the pooled session
    • Method Detail

      • token

        public int token()
        Specified by:
        token in interface com.saperion.connector.authentication.Session
      • username

        public java.lang.String username()
        Specified by:
        username in interface com.saperion.connector.authentication.Session
      • tenant

        public java.lang.String tenant()
        Specified by:
        tenant in interface com.saperion.connector.authentication.Session
      • license

        public com.saperion.connector.authentication.LicenseType license()
        Specified by:
        license in interface com.saperion.connector.authentication.Session
      • id

        public java.lang.String id()
        Specified by:
        id in interface com.saperion.connector.authentication.Session
      • info

        public com.saperion.connector.authentication.SessionInfo info()
        Specified by:
        info in interface com.saperion.connector.authentication.Session
      • getDelegate

        public com.saperion.connector.authentication.Session getDelegate()