public class FixedDurationExpirationSessionRepositoryBeanPostProcessor
extends java.lang.Object
implements org.springframework.beans.factory.config.BeanPostProcessor
FixedDurationExpirationSessionRepositoryBeanPostProcessor class wraps an existing, data store specific,
instance of SessionRepository in an instance of FixedDurationExpirationSessionRepository initialized
with a provided Duration for the expiration timeout to implement lazy, fixed Duration expiration
on all Sessions.BeanPostProcessor,
Session,
SessionRepository,
FixedDurationExpirationSessionRepository,
Absolute Session Timeouts| Constructor and Description |
|---|
FixedDurationExpirationSessionRepositoryBeanPostProcessor(java.time.Duration expirationTimeout)
Constructs a new instance of
FixedDurationExpirationSessionRepositoryBeanPostProcessor initialized with
the given Duration to implement lazy, fixed Duration expiration policy
on all Sessions. |
| Modifier and Type | Method and Description |
|---|---|
protected java.time.Duration |
getExpirationTimeout()
Returns the configured
Session expiration timeout. |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
public FixedDurationExpirationSessionRepositoryBeanPostProcessor(@Nullable
java.time.Duration expirationTimeout)
FixedDurationExpirationSessionRepositoryBeanPostProcessor initialized with
the given Duration to implement lazy, fixed Duration expiration policy
on all Sessions.expirationTimeout - Duration indicating the length of time until the Session expires.Durationprotected java.time.Duration getExpirationTimeout()
Session expiration timeout.Session expiration timeout.Duration@Nullable
public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException