Class 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)  
    • Constructor Detail

      • CloseablePooledSession

        public CloseablePooledSession​(java.lang.String token,
                                      com.saperion.connector.pool.PooledSession pooledSession,
                                      com.lexmark.saperion.remote.common.authentication.Credentials credentials)
    • 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 interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • closeExplicitly

        public void closeExplicitly()
      • closedByRuntime

        public boolean closedByRuntime()