@ConfigurationProperties(value="micronaut.session") public class SessionConfiguration extends java.lang.Object
Base configuration properties for session handling.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXINACTIVEINTERVAL_MINUTES
The default max inactive interval in minutes.
|
Constructor and Description |
---|
SessionConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.util.concurrent.ScheduledExecutorService> |
getExecutorService() |
java.util.OptionalInt |
getMaxActiveSessions() |
java.time.Duration |
getMaxInactiveInterval() |
boolean |
isPromptExpiration() |
void |
setExecutorService(javax.inject.Provider<java.util.concurrent.ExecutorService> executorService)
Set the executor service.
|
void |
setMaxActiveSessions(java.lang.Integer maxActiveSessions)
Sets the maximum number of active sessions.
|
void |
setMaxInactiveInterval(java.time.Duration maxInactiveInterval)
Set the maximum inactive interval.
|
void |
setPromptExpiration(boolean promptExpiration)
Set if prompt expiration is enabled.
|
public static final int DEFAULT_MAXINACTIVEINTERVAL_MINUTES
public java.util.OptionalInt getMaxActiveSessions()
public void setMaxActiveSessions(java.lang.Integer maxActiveSessions)
maxActiveSessions
- The max active sessionspublic java.time.Duration getMaxInactiveInterval()
public void setMaxInactiveInterval(java.time.Duration maxInactiveInterval)
maxInactiveInterval
- The max inactive intervalpublic boolean isPromptExpiration()
public void setPromptExpiration(boolean promptExpiration)
promptExpiration
- if prompt expiration is enabled / disabledpublic java.util.Optional<java.util.concurrent.ScheduledExecutorService> getExecutorService()
@Inject public void setExecutorService(@Nullable @Named(value="scheduled") javax.inject.Provider<java.util.concurrent.ExecutorService> executorService)
executorService
- The executorService