USER - the generic type for the users object.ID - the generic type for the id the references to the user object.SESSION - the generic type for the session object.public class OnlineSessionUsers<USER,ID,SESSION> extends OnlineUsers<USER,ID>
| Constructor and Description |
|---|
OnlineSessionUsers() |
| Modifier and Type | Method and Description |
|---|---|
ID |
addOnline(USER user,
ID sessionId,
SESSION session)
Adds the user online.
|
SESSION |
get(USER user)
Gets the session from the given user.
|
SESSION |
getSession(ID sessionId)
Gets the session from the given session id.
|
USER |
remove(ID sessionId)
Removes the user from the map with the session id.
|
ID |
removeOnline(USER user)
Removes the user from the map.
|
ID |
replaceSessionId(USER user,
ID oldSessionId,
ID newSessionId,
SESSION newSession)
Replace the given old session id with the new one.
|
addOnline, getSessionId, getSize, getUser, isOnline, replaceSessionIdpublic ID addOnline(USER user, ID sessionId, SESSION session)
user - the usersessionId - the session idsession - the session objectpublic SESSION get(USER user)
user - the userpublic SESSION getSession(ID sessionId)
sessionId - the session idpublic USER remove(ID sessionId)
remove in class OnlineUsers<USER,ID>sessionId - the session idpublic ID removeOnline(USER user)
WebApplication#sessionUnbound(String).removeOnline in class OnlineUsers<USER,ID>user - the userpublic ID replaceSessionId(USER user, ID oldSessionId, ID newSessionId, SESSION newSession)
user - the useroldSessionId - the old session idnewSessionId - the new session idnewSession - the new session objectCopyright © 2010–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.