Class ShellServerOptions
java.lang.Object
io.vertx.ext.shell.ShellServerOptions
- Direct Known Subclasses:
ShellServiceOptions
The configurations options for the shell server.
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault of how often, in ms, to check for expired sessionsstatic final longDefault time, in ms, that a shell session lasts for without being accessed before expiring.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongsetReaperInterval(long reaperInterval) Set the repear interval, i.e the period at which session eviction is performed.setSessionTimeout(long sessionTimeout) Set the session timeout.setWelcomeMessage(String welcomeMessage) Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell.
-
Field Details
-
DEFAULT_REAPER_INTERVAL
public static final long DEFAULT_REAPER_INTERVALDefault of how often, in ms, to check for expired sessions- See Also:
-
DEFAULT_SESSION_TIMEOUT
public static final long DEFAULT_SESSION_TIMEOUTDefault time, in ms, that a shell session lasts for without being accessed before expiring.- See Also:
-
DEFAULT_WELCOME_MESSAGE
-
-
Constructor Details
-
ShellServerOptions
public ShellServerOptions() -
ShellServerOptions
-
ShellServerOptions
-
-
Method Details
-
getWelcomeMessage
- Returns:
- the shell welcome message
-
setWelcomeMessage
Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell.- Parameters:
welcomeMessage- the welcome message- Returns:
- a reference to this, so the API can be used fluently
-
getSessionTimeout
public long getSessionTimeout()- Returns:
- the session timeout
-
setSessionTimeout
Set the session timeout.- Parameters:
sessionTimeout- the new session timeout- Returns:
- a reference to this, so the API can be used fluently
-
getReaperInterval
public long getReaperInterval()- Returns:
- the reaper interval
-
setReaperInterval
Set the repear interval, i.e the period at which session eviction is performed.- Parameters:
reaperInterval- the new repeat interval- Returns:
- a reference to this, so the API can be used fluently
-