Package com.verisign.epp.pool
Interface EPPPooledSession
-
- All Known Implementing Classes:
EPPPooledGenericHttpSession,EPPPooledGenericQuicSession,EPPPooledGenericSession
public interface EPPPooledSessionInterface implemented by object's managed by theEPPSessionPoolableFactoryor derived class. The created time is used to determine if the session has exceeded the absolute session timeout and the last touched time is used to determine if a keep alive message needs to be sent to keep the session active.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAbsoluteTimeout()Gets the absolute timeout in milliseconds for the session.longgetCreatedTime()Gets the time the pooled object was created.longgetLastTouched()Gets the last time the pooled object was touched.EPPGreetinghello()Send the EPP hello in the underlyingEPPSession.voidtouch()Set the last touched to the current time.
-
-
-
Method Detail
-
getCreatedTime
long getCreatedTime()
Gets the time the pooled object was created.- Returns:
- Epoch time of creation
-
getLastTouched
long getLastTouched()
Gets the last time the pooled object was touched.- Returns:
- Epoch time of touch
-
touch
void touch()
Set the last touched to the current time.
-
getAbsoluteTimeout
long getAbsoluteTimeout()
Gets the absolute timeout in milliseconds for the session.- Returns:
- Absolute timeout in milliseconds for the session.
-
hello
EPPGreeting hello() throws EPPCommandException
Send the EPP hello in the underlyingEPPSession.- Returns:
EPPGreetinginstance from the server- Throws:
EPPCommandException- Error sending the EPP hello
-
-