Package net.officefloor.web.session.spi
Interface RetrieveHttpSessionOperation
public interface RetrieveHttpSessionOperation
Operation to obtain details of retrieving a
HttpSession from the
HttpSessionStore.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidfailedToRetreiveSession(Throwable cause) Flags that failed to retrieve theHttpSessionfrom theHttpSessionStore.Obtains the session Id of theHttpSessionto retrieve.voidFlags that theHttpSessionis not available in theHttpSessionStore.voidsessionRetrieved(Instant creationTime, Instant expireTime, Map<String, Serializable> attributes) Flags that theHttpSessionwas successfully retrieved from theHttpSessionStore.
-
Method Details
-
getSessionId
String getSessionId()Obtains the session Id of theHttpSessionto retrieve.- Returns:
- Session Id of the
HttpSessionto retrieve.
-
sessionRetrieved
void sessionRetrieved(Instant creationTime, Instant expireTime, Map<String, Serializable> attributes) Flags that theHttpSessionwas successfully retrieved from theHttpSessionStore.- Parameters:
creationTime- Time theHttpSessionwas created in theHttpSessionStore.expireTime- Time to expire theHttpSessionshould it be idle.attributes- Attributes for the retrievedHttpSession.
-
sessionNotAvailable
void sessionNotAvailable()Flags that the
HttpSessionis not available in theHttpSessionStore.Typically this is due to the
HttpSessiontiming out and being invalidated. -
failedToRetreiveSession
Flags that failed to retrieve theHttpSessionfrom theHttpSessionStore.- Parameters:
cause- Cause of the failure.
-