Package com.verisign.epp.pool
Interface EPPPooledSession
- All Known Implementing Classes:
EPPPooledGenericHttpSession,EPPPooledGenericQuicSession,EPPPooledGenericSession
public interface EPPPooledSession
Interface implemented by object's managed by the
EPPSessionPoolableFactory or 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
Modifier and TypeMethodDescriptionlongGets the absolute timeout in milliseconds for the session.longGets the time the pooled object was created.longGets the last time the pooled object was touched.hello()Send the EPP hello in the underlyingEPPSession.voidtouch()Set the last touched to the current time.
-
Method Details
-
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
Send the EPP hello in the underlyingEPPSession.- Returns:
EPPGreetinginstance from the server- Throws:
EPPCommandException- Error sending the EPP hello
-