public class ShellServerOptions extends Object
| Modifier and Type | Field and Description | 
|---|---|
static long | 
DEFAULT_REAPER_INTERVAL
Default of how often, in ms, to check for expired sessions 
 | 
static long | 
DEFAULT_SESSION_TIMEOUT
Default time, in ms, that a shell session lasts for without being accessed before expiring. 
 | 
static String | 
DEFAULT_WELCOME_MESSAGE  | 
| Constructor and Description | 
|---|
ShellServerOptions()  | 
ShellServerOptions(JsonObject json)  | 
ShellServerOptions(ShellServerOptions that)  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getReaperInterval()  | 
long | 
getSessionTimeout()  | 
String | 
getWelcomeMessage()  | 
ShellServerOptions | 
setReaperInterval(long reaperInterval)
Set the repear interval, i.e the period at which session eviction is performed. 
 | 
ShellServerOptions | 
setSessionTimeout(long sessionTimeout)
Set the session timeout. 
 | 
ShellServerOptions | 
setWelcomeMessage(String welcomeMessage)
Set the shell welcome message, i.e the message displayed in the user console when he connects to the shell. 
 | 
public static final long DEFAULT_REAPER_INTERVAL
public static final long DEFAULT_SESSION_TIMEOUT
public static final String DEFAULT_WELCOME_MESSAGE
public ShellServerOptions()
public ShellServerOptions(ShellServerOptions that)
public ShellServerOptions(JsonObject json)
public String getWelcomeMessage()
public ShellServerOptions setWelcomeMessage(String welcomeMessage)
welcomeMessage - the welcome messagepublic long getSessionTimeout()
public ShellServerOptions setSessionTimeout(long sessionTimeout)
sessionTimeout - the new session timeoutpublic long getReaperInterval()
public ShellServerOptions setReaperInterval(long reaperInterval)
reaperInterval - the new repeat intervalCopyright © 2021 Eclipse. All rights reserved.