Class ReuseSessions
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.standaloneserver.core.config.ReuseSessions
-
public class ReuseSessions extends Object
Class to parse the part of infobase configuration file into an object.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTO_USE
"AutoUse" value of mode parameter forReuseSessions
static int
DEFAULT_MAX_AGE
Default value for max age parameterstatic int
DEFAULT_MAX_SIZE
Default value for max size parameterstatic int
DEFAULT_TIMEOUT
Default value for timeout parameterstatic String
DONT_USE
"DontUse" value of mode parameter forReuseSessions
static String
USE
"Use" value of mode parameter forReuseSessions
-
Constructor Summary
Constructors Constructor Description ReuseSessions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReuseSessions
copy()
Creates a copy of the instance.boolean
equals(Object obj)
int
getMaxAge()
int
getMaxSize()
String
getMode()
int
getTimeout()
int
hashCode()
void
setMaxAge(int maxAge)
Set maxAgevoid
setMaxSize(int maxSize)
Set maxSizevoid
setMode(String mode)
Set modevoid
setTimeout(int timeout)
Set timeout
-
-
-
Field Detail
-
AUTO_USE
public static final String AUTO_USE
"AutoUse" value of mode parameter forReuseSessions
- See Also:
- Constant Field Values
-
DONT_USE
public static final String DONT_USE
"DontUse" value of mode parameter forReuseSessions
- See Also:
- Constant Field Values
-
USE
public static final String USE
"Use" value of mode parameter forReuseSessions
- See Also:
- Constant Field Values
-
DEFAULT_MAX_AGE
public static final int DEFAULT_MAX_AGE
Default value for max age parameter- See Also:
- Constant Field Values
-
DEFAULT_MAX_SIZE
public static final int DEFAULT_MAX_SIZE
Default value for max size parameter- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT
public static final int DEFAULT_TIMEOUT
Default value for timeout parameter- See Also:
- Constant Field Values
-
-
Method Detail
-
getMode
public String getMode()
- Returns:
- mode, never
null
-
copy
public ReuseSessions copy()
Creates a copy of the instance.- Returns:
- the copy instance, never
null
-
setMode
public void setMode(String mode)
Set mode- Parameters:
mode
- to set, cannot benull
-
getMaxAge
public int getMaxAge()
- Returns:
- maxAge, never
null
-
setMaxAge
public void setMaxAge(int maxAge)
Set maxAge- Parameters:
maxAge
- to set, cannot benull
-
getMaxSize
public int getMaxSize()
- Returns:
- maxSize, never
null
-
setMaxSize
public void setMaxSize(int maxSize)
Set maxSize- Parameters:
maxSize
- to set, cannot benull
-
getTimeout
public int getTimeout()
- Returns:
- timeout, never
null
-
setTimeout
public void setTimeout(int timeout)
Set timeout- Parameters:
timeout
- to set, cannot benull
-
-