Interface SessionExpirationPolicy
public interface SessionExpirationPolicy
A rule that determines the expiration for a backend session based on the
current HTTP session timeout.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SessionExpirationPolicyA policy that prevents expiration. -
Method Summary
-
Field Details
-
NEVER
A policy that prevents expiration.
-
-
Method Details
-
apply
Computes the maximum amount of time an inactive session should be preserved in the backed, based on the given HTTP session timeout expressed in seconds.
A return value ofDuration.ZEROor less means the backend session should never expire.- Parameters:
sessionTimeout- HTTP session timeout expressed in seconds.- Returns:
- the maximum amount of time an inactive session should be preserved in the backed.
-