public static class AuthAction.InMemorySessionDao extends java.lang.Object implements AuthAction.SessionDao
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,User> |
cache |
protected long |
sessionExp |
protected int |
sessionMax |
protected long |
sessionUpdate |
| Modifier | Constructor and Description |
|---|---|
protected |
InMemorySessionDao() |
|
InMemorySessionDao(int sessionMax) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String sessionKey) |
protected void |
doDelete(java.lang.String sessionKey)
Override me to change out map/cache implementation
|
protected User |
doGet(java.lang.String sessionKey)
Override me to change out map/cache implementation
|
protected void |
doPut(java.lang.String sessionKey,
User user)
Override me to change out map/cache implementation
|
User |
get(java.lang.String sessionKey) |
protected java.lang.String |
newSessionId() |
java.lang.String |
post(User user) |
void |
put(java.lang.String sessionKey,
User user) |
AuthAction.SessionDao |
withSessionExp(long sessionExp) |
AuthAction.SessionDao |
withSessionMax(int sessionMax) |
AuthAction.SessionDao |
withSessionUpdate(long sessionUpdate) |
protected long sessionExp
protected long sessionUpdate
protected int sessionMax
protected java.util.Map<java.lang.String,User> cache
protected InMemorySessionDao()
public InMemorySessionDao(int sessionMax)
public User get(java.lang.String sessionKey)
get in interface AuthAction.SessionDaoprotected User doGet(java.lang.String sessionKey)
sessionKey - public java.lang.String post(User user)
post in interface AuthAction.SessionDaopublic void put(java.lang.String sessionKey,
User user)
put in interface AuthAction.SessionDaoprotected void doPut(java.lang.String sessionKey,
User user)
public void delete(java.lang.String sessionKey)
delete in interface AuthAction.SessionDaoprotected void doDelete(java.lang.String sessionKey)
sessionKey - protected java.lang.String newSessionId()
public AuthAction.SessionDao withSessionUpdate(long sessionUpdate)
public AuthAction.SessionDao withSessionMax(int sessionMax)
public AuthAction.SessionDao withSessionExp(long sessionExp)
Copyright © 2024 Rocket Partners, LLC. All rights reserved.