Package io.micronaut.session
Class SessionConfiguration
java.lang.Object
io.micronaut.session.SessionConfiguration
- Direct Known Subclasses:
HttpSessionConfiguration
Base configuration properties for session handling.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default max inactive interval in minutes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setExecutorService
(@Nullable io.micronaut.context.BeanProvider<ExecutorService> executorService) Set the executor service.void
setMaxActiveSessions
(Integer maxActiveSessions) Sets the maximum number of active sessions.void
setMaxInactiveInterval
(Duration maxInactiveInterval) Set the maximum inactive interval.void
setPromptExpiration
(boolean promptExpiration) Set if prompt expiration is enabled.
-
Field Details
-
DEFAULT_MAXINACTIVEINTERVAL_MINUTES
public static final int DEFAULT_MAXINACTIVEINTERVAL_MINUTESThe default max inactive interval in minutes.- See Also:
-
-
Constructor Details
-
SessionConfiguration
public SessionConfiguration()
-
-
Method Details
-
getMaxActiveSessions
- Returns:
- The maximum number of active sessions
-
setMaxActiveSessions
Sets the maximum number of active sessions.- Parameters:
maxActiveSessions
- The max active sessions
-
getMaxInactiveInterval
- Returns:
- The maximum inactive interval
-
setMaxInactiveInterval
Set the maximum inactive interval. Default value (30 minutes).- Parameters:
maxInactiveInterval
- The max inactive interval
-
isPromptExpiration
public boolean isPromptExpiration()- Returns:
- if prompt expiration is enabled.
-
setPromptExpiration
public void setPromptExpiration(boolean promptExpiration) Set if prompt expiration is enabled.- Parameters:
promptExpiration
- if prompt expiration is enabled / disabled
-
getExecutorService
- Returns:
- The injected executor service
-
setExecutorService
@Inject public void setExecutorService(@Nullable @Named("scheduled") @Nullable io.micronaut.context.BeanProvider<ExecutorService> executorService) Set the executor service.- Parameters:
executorService
- The executorService
-