public interface EzyUser extends EzyDeliver, com.tvd12.ezyfox.constant.EzyHasName, com.tvd12.ezyfox.util.EzyProperties, com.tvd12.ezyfox.util.EzyDestroyable
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(EzySession session)
Add new session
|
List<EzySession> |
changeSession(EzySession session)
change current session
|
default void |
disconnect()
disconnect
|
void |
disconnect(com.tvd12.ezyfox.constant.EzyConstant reason)
disconnect
|
long |
getId()
Get user id
|
Lock |
getLock(String name) |
long |
getMaxIdleTime()
Get max idle time
|
int |
getMaxSessions()
Get max session
|
EzySession |
getSession()
Get the first session
|
int |
getSessionCount()
Get the session count
|
List<EzySession> |
getSessions()
Get current session
|
long |
getStartIdleTime()
Get start idle time
|
int |
getZoneId()
Get zone id
|
boolean |
isDestroyed() |
boolean |
isIdle() |
void |
removeSession(EzySession session)
remove a session
|
void |
setStartIdleTime(long time)
Set start idle time
|
send, sendNowremoveProperty, setProperties, setPropertylong getId()
int getZoneId()
int getMaxSessions()
long getMaxIdleTime()
long getStartIdleTime()
void setStartIdleTime(long time)
time - the start idle timeint getSessionCount()
EzySession getSession()
List<EzySession> getSessions()
void addSession(EzySession session)
session - the session to addvoid removeSession(EzySession session)
session - the session to removeList<EzySession> changeSession(EzySession session)
session - the session to changeboolean isIdle()
boolean isDestroyed()
void disconnect(com.tvd12.ezyfox.constant.EzyConstant reason)
reason - the reasondefault void disconnect()
Copyright © 2021 Young Monkeys. All rights reserved.