|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webtair.session.config.ConfigBean
public class ConfigBean
Config Bean – implements basic configuration information needed for properly working SessionMan.
| Field Summary | |
|---|---|
protected static long |
DEFAULT_CLEANUP_INTERVAL
Default session cleanus interval 10min |
protected static long |
DEFAULT_SESSION_LIFETIME
Default session life in ms = 30min * 60s * 1000ms |
protected static int |
DEFAULT_USER_COUNT
Prospective quantity of sessions |
protected static int |
MIN_CLEANUP_INTERVAL
Minimally admissible cleanup interval |
protected static int |
MIN_SESSION_LIFETIME
Minimally admissible time of a session life |
| Constructor Summary | |
|---|---|
ConfigBean()
Default constructor init all fields of bean with values defined in constants |
|
ConfigBean(int userCount,
long sessionLifeTime,
long cleanupInterval)
Constructor that specifies all fields of the bean |
|
ConfigBean(long sessionLifeTime,
long cleanupInterval)
Constructor that specifies only session life time and cleanup interval. |
|
| Method Summary | |
|---|---|
long |
getCleanupInterval()
Return current cleanup interval in ms; |
long |
getSessionLifeTime()
Return current session lifetime in ms |
int |
getUserCount()
Return current user count (initial size of HashMap) |
void |
setCleanupInterval(long cleanupInterval)
Set current cleanup interval in ms; |
void |
setSessionLifeTime(long sessionLifeTime)
Set session lifetime in ms; |
void |
setUserCount(int userCount)
Set current user count (initial size of HashMap) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int MIN_SESSION_LIFETIME
protected static final int MIN_CLEANUP_INTERVAL
protected static final int DEFAULT_USER_COUNT
protected static final long DEFAULT_SESSION_LIFETIME
protected static final long DEFAULT_CLEANUP_INTERVAL
| Constructor Detail |
|---|
public ConfigBean()
public ConfigBean(long sessionLifeTime,
long cleanupInterval)
sessionLifeTime - - session life time in ms;cleanupInterval - - cleanup interval in ms;
public ConfigBean(int userCount,
long sessionLifeTime,
long cleanupInterval)
userCount - - predicted value of users for HashMap initsessionLifeTime - - session life time in ms;cleanupInterval - - cleanup interval in ms;| Method Detail |
|---|
public long getCleanupInterval()
public void setCleanupInterval(long cleanupInterval)
cleanupInterval - the cleanup interval in ms;public long getSessionLifeTime()
public void setSessionLifeTime(long sessionLifeTime)
sessionLifeTime - the session lifetime in ms;public int getUserCount()
public void setUserCount(int userCount)
userCount - the userCount to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||