public interface EzySessionManager<S extends EzySession>
| Modifier and Type | Method and Description |
|---|---|
void |
addLoggedInSession(S session)
Recognize that the session has logged in.
|
void |
clearSession(S session)
clear session.
|
boolean |
containsSession(long id)
Check contains session mapped to id or not.
|
int |
getAliveSessionCount()
Get all alive session count.
|
List<S> |
getAliveSessions()
Get all alive sessions.
|
int |
getAllSessionCount()
Get all session count.
|
List<S> |
getAllSessions()
Get all sessions.
|
int |
getLoggedInSessionCount()
Get logged-in session count.
|
List<S> |
getLoggedInSessions()
Get logged-in sessions.
|
EzySession |
getSession(long id)
Get session by id.
|
S |
getSession(Object connection)
Get session by connection.
|
S |
provideSession(EzyChannel channel)
Provide session from pool and map the session to channel.
|
default void |
removeSession(S session)
Add session to disconnect queue.
|
void |
removeSession(S session,
com.tvd12.ezyfox.constant.EzyConstant reason)
Add session to disconnect queue.
|
void addLoggedInSession(S session)
session - the sessionboolean containsSession(long id)
id - the session idEzySession getSession(long id)
id - the idS getSession(Object connection)
connection - the connectionvoid removeSession(S session, com.tvd12.ezyfox.constant.EzyConstant reason)
session - the sessionreason - the reasondefault void removeSession(S session)
session - the sessionvoid clearSession(S session)
session - the sessionList<S> getLoggedInSessions()
int getAllSessionCount()
int getAliveSessionCount()
int getLoggedInSessionCount()
S provideSession(EzyChannel channel)
channel - the channelCopyright © 2024 Young Monkeys. All rights reserved.