@Component(value="cuba_UserSessionsMBean") public class UserSessions extends java.lang.Object implements UserSessionsMBean
Modifier and Type | Field and Description |
---|---|
protected UserSessionsAPI |
userSessions |
Constructor and Description |
---|
UserSessions() |
Modifier and Type | Method and Description |
---|---|
int |
getCount() |
int |
getExpirationTimeoutSec()
User session expiration timeout.
|
int |
getSendTimeoutSec() |
java.lang.String |
killSession(java.lang.String id)
Kill specified session
|
java.lang.String |
printSessions() |
void |
processEviction() |
void |
setExpirationTimeoutSec(int value)
Set user session expiration timeout for the current server session.
|
void |
setSendTimeoutSec(int timeout)
Set user session ping timeout in cluster.
|
@Inject protected UserSessionsAPI userSessions
public int getExpirationTimeoutSec()
UserSessionsMBean
getExpirationTimeoutSec
in interface UserSessionsMBean
public void setExpirationTimeoutSec(int value)
UserSessionsMBean
setExpirationTimeoutSec
in interface UserSessionsMBean
value
- timeout in secondspublic int getSendTimeoutSec()
getSendTimeoutSec
in interface UserSessionsMBean
UserSessionsMBean.setSendTimeoutSec(int)
public void setSendTimeoutSec(int timeout)
UserSessionsMBean
UserSessionsAPI.getAndRefresh(java.util.UUID)
,
the user session is sent to the cluster only after the specified timeout.setSendTimeoutSec
in interface UserSessionsMBean
timeout
- in secondspublic int getCount()
getCount
in interface UserSessionsMBean
public java.lang.String printSessions()
printSessions
in interface UserSessionsMBean
public void processEviction()
processEviction
in interface UserSessionsMBean
public java.lang.String killSession(java.lang.String id)
UserSessionsMBean
killSession
in interface UserSessionsMBean
id
- Session id