Package com.verisign.epp.pool
Class EPPPooledGenericQuicSession
- java.lang.Object
-
- com.verisign.epp.interfaces.EPPSession
-
- com.verisign.epp.interfaces.EPPQuicSession
-
- com.verisign.epp.pool.EPPPooledGenericQuicSession
-
- All Implemented Interfaces:
EPPPooledSession
public class EPPPooledGenericQuicSession extends EPPQuicSession implements EPPPooledSession
Pooled genericEPPQuicSession. Timestamp attributes were added to handle absolute session timeout and ensure that idle timeouts don't occur.
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.interfaces.EPPQuicSession
EOQ_CONNECTION_START_PACKET
-
Fields inherited from class com.verisign.epp.interfaces.EPPSession
clientId, codec, connection, extensionServices, inputStream, language, loginAdapter, message, mode, MODE_ASYNC, MODE_SYNC, msgID, newPassword, OP_ACK, OP_REQ, outputStream, password, pollOp, response, responsePacket, services, transId, version, xmlStream
-
-
Constructor Summary
Constructors Constructor Description EPPPooledGenericQuicSession()Default constructor forEPPPooledGenericSession.EPPPooledGenericQuicSession(java.lang.String aUrl)Constructor that takes an explicit URL to connect to.EPPPooledGenericQuicSession(java.lang.String aUrl, EPPSSLContext aSSLContext)Constructor that takes an explicit URL to connect to andEPPSSLContextto use.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAbsoluteTimeout()Gets the session absolute timeout in milliseconds.longgetCreatedTime()Gets the time the pooled object was created.longgetLastTouched()Gets the last time the pooled object was touched.booleanhasAbsoluteTimeout()Has absolute timeout set?voidsetAbsoluteTimeout(long aAbsoluteTimeout)Sets the session absolute timeout in milliseconds.voidtouch()Sets the last touched to the current time.-
Methods inherited from class com.verisign.epp.interfaces.EPPQuicSession
getUrl, init, setUrl
-
Methods inherited from class com.verisign.epp.interfaces.EPPSession
endConnection, endSession, getClientCon, getClientID, getConnection, getInputStream, getLoginAdapter, getMode, getMsgID, getNewPassword, getOutputStream, getPassword, getPollOp, getResponse, getTransId, getVersion, hello, init, init, initLoginAdapter, initSession, initSession, initStreams, isModeSupported, login, login, logout, processDocument, processDocument, processGreeting, readResponse, recDocument, sendDocument, sendMessage, sendPacket, sendPoll, setClientID, setExtensions, setInputStream, setLang, setLang, setLoginAdapter, setMode, setMsgID, setNewPassword, setOutputStream, setPassword, setPollOp, setServices, setTransId, setVersion, validateClientTransId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.verisign.epp.pool.EPPPooledSession
hello
-
-
-
-
Constructor Detail
-
EPPPooledGenericQuicSession
public EPPPooledGenericQuicSession() throws EPPCommandExceptionDefault constructor forEPPPooledGenericSession.- Throws:
EPPCommandException- On error
-
EPPPooledGenericQuicSession
public EPPPooledGenericQuicSession(java.lang.String aUrl) throws EPPCommandExceptionConstructor that takes an explicit URL to connect to.- Parameters:
aUrl- URL to connect to- Throws:
EPPCommandException- Error connecting to server
-
EPPPooledGenericQuicSession
public EPPPooledGenericQuicSession(java.lang.String aUrl, EPPSSLContext aSSLContext) throws EPPCommandExceptionConstructor that takes an explicit URL to connect to andEPPSSLContextto use.- Parameters:
aUrl- URL to connect toaSSLContext- Optional specific SSL context to use. Set tonullif undefined.- Throws:
EPPCommandException- Error connecting to server
-
-
Method Detail
-
getCreatedTime
public long getCreatedTime()
Gets the time the pooled object was created.- Specified by:
getCreatedTimein interfaceEPPPooledSession- Returns:
- Epoch time of creation
-
getLastTouched
public long getLastTouched()
Gets the last time the pooled object was touched.- Specified by:
getLastTouchedin interfaceEPPPooledSession- Returns:
- Epoch time of touch
-
touch
public void touch()
Sets the last touched to the current time.- Specified by:
touchin interfaceEPPPooledSession
-
hasAbsoluteTimeout
public boolean hasAbsoluteTimeout()
Has absolute timeout set?- Returns:
trueif absolute timeout are set;falseotherwise.
-
getAbsoluteTimeout
public long getAbsoluteTimeout()
Gets the session absolute timeout in milliseconds.- Specified by:
getAbsoluteTimeoutin interfaceEPPPooledSession- Returns:
- Absolute timeout in milliseconds
-
setAbsoluteTimeout
public void setAbsoluteTimeout(long aAbsoluteTimeout)
Sets the session absolute timeout in milliseconds.- Parameters:
aAbsoluteTimeout- Absolute timeout in milliseconds.
-
-