@ConfigurationProperties(value="micronaut.session") public class SessionConfiguration extends 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 | 
|---|---|
Optional<ScheduledExecutorService> | 
getExecutorService()  | 
OptionalInt | 
getMaxActiveSessions()  | 
Duration | 
getMaxInactiveInterval()  | 
boolean | 
isPromptExpiration()  | 
void | 
setExecutorService(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. 
 | 
public static final int DEFAULT_MAXINACTIVEINTERVAL_MINUTES
public OptionalInt getMaxActiveSessions()
public void setMaxActiveSessions(Integer maxActiveSessions)
maxActiveSessions - The max active sessionspublic Duration getMaxInactiveInterval()
public void setMaxInactiveInterval(Duration maxInactiveInterval)
maxInactiveInterval - The max inactive intervalpublic boolean isPromptExpiration()
public void setPromptExpiration(boolean promptExpiration)
promptExpiration - if prompt expiration is enabled / disabledpublic Optional<ScheduledExecutorService> getExecutorService()
@Inject public void setExecutorService(@Nullable @Named(value="scheduled") BeanProvider<ExecutorService> executorService)
executorService - The executorService