Class EPPPooledGenericSession

  • All Implemented Interfaces:
    EPPPooledSession

    public class EPPPooledGenericSession
    extends EPPSession
    implements EPPPooledSession
    Pooled generic EPPSession. Timestamp attributes were added to handle absolute session timeout and ensure that idle timeouts don't occur.
    • Constructor Detail

      • EPPPooledGenericSession

        public EPPPooledGenericSession​(java.lang.String aHostName,
                                       int aPortNumber)
                                throws EPPCommandException
        Constructor that takes an explicit host name and port number to connect to.
        Parameters:
        aHostName - Host name or IP address of server
        aPortNumber - Server port number
        Throws:
        EPPCommandException - Error connecting to server
      • EPPPooledGenericSession

        public EPPPooledGenericSession​(java.lang.String aHostName,
                                       int aPortNumber,
                                       java.lang.String aClientHost)
                                throws EPPCommandException
        Constructor that takes an explicit server host name, server port number, and client host name to connect to.
        Parameters:
        aHostName - Host name or IP address of host to connect to
        aPortNumber - Port number to connect to
        aClientHost - Host name or IP address to connect from
        Throws:
        EPPCommandException - Error connecting to server
      • EPPPooledGenericSession

        public EPPPooledGenericSession​(java.lang.String aHostName,
                                       int aPortNumber,
                                       EPPSSLContext aSSLContext)
                                throws EPPCommandException
        Constructor that takes an explicit host name and port number to connect to.
        Parameters:
        aHostName - Host name or IP address of server
        aPortNumber - Server port number
        aSSLContext - Optional specific SSL context to use
        Throws:
        EPPCommandException - Error connecting to server
      • EPPPooledGenericSession

        public EPPPooledGenericSession​(java.lang.String aHostName,
                                       int aPortNumber,
                                       java.lang.String aClientHost,
                                       EPPSSLContext aSSLContext)
                                throws EPPCommandException
        Constructor that takes an explicit server host name, server port number, and client host name to connect to.
        Parameters:
        aHostName - Host name or IP address of host to connect to
        aPortNumber - Port number to connect to
        aClientHost - Host name or IP address to connect from
        aSSLContext - Optional specific SSL context to use
        Throws:
        EPPCommandException - Error connecting to server
    • Method Detail

      • getCreatedTime

        public long getCreatedTime()
        Gets the time the pooled object was created.
        Specified by:
        getCreatedTime in interface EPPPooledSession
        Returns:
        Epoch time of creation
      • getLastTouched

        public long getLastTouched()
        Gets the last time the pooled object was touched.
        Specified by:
        getLastTouched in interface EPPPooledSession
        Returns:
        Epoch time of touch
      • touch

        public void touch()
        Sets the last touched to the current time.
        Specified by:
        touch in interface EPPPooledSession
      • hasAbsoluteTimeout

        public boolean hasAbsoluteTimeout()
        Has absolute timeout set?
        Returns:
        true if absolute timeout are set; false otherwise.
      • getAbsoluteTimeout

        public long getAbsoluteTimeout()
        Gets the session absolute timeout in milliseconds.
        Returns:
        Absolute timeout in milliseconds
      • setAbsoluteTimeout

        public void setAbsoluteTimeout​(long aAbsoluteTimeout)
        Sets the session absolute timeout in milliseconds.
        Parameters:
        aAbsoluteTimeout - Absolute timeout in milliseconds.