ComponentAbstractSessionHandler, DefaultSessionManagerpublic interface SessionHandler extends Component
Created: 2017. 6. 12.
| Modifier and Type | Method | Description |
|---|---|---|
void |
access(Session session) |
Called by the
SessionHandler when a session is first accessed by a request. |
void |
addEventListener(java.util.EventListener listener) |
Adds an event listener for session-related events.
|
void |
clearEventListeners() |
Removes all event listeners for session-related events.
|
void |
complete(Session session) |
Called by the
SessionHandler when a session is last accessed by a request. |
void |
didActivate(Session session) |
Call the activation listeners.
|
int |
getDefaultMaxIdleSecs() |
|
Scheduler |
getScheduler() |
|
Session |
getSession(java.lang.String id) |
Get a known existing session.
|
SessionCache |
getSessionCache() |
|
SessionIdGenerator |
getSessionIdGenerator() |
|
int |
getSessionsCreated() |
Returns the total number of sessions created by this manager.
|
long |
getSessionTimeMax() |
Returns the maximum time the session is valid.
|
double |
getSessionTimeMean() |
Returns the mean amount of time session remained valid.
|
double |
getSessionTimeStdDev() |
Returns the standard deviation of amount of time session remained valid.
|
long |
getSessionTimeTotal() |
Returns the total amount of time all sessions remained valid.
|
void |
invalidate(java.lang.String id) |
Called when a session has expired.
|
Session |
newSession(java.lang.String id) |
Creates a new
Session. |
java.lang.String |
newSessionId(long seedTerm) |
|
void |
removeEventListener(java.util.EventListener listener) |
Removes an event listener for for session-related events.
|
void |
sessionAttributeChanged(Session session,
java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue) |
Call binding and attribute listeners based on the new and old
values of the attribute.
|
void |
setDefaultMaxIdleSecs(int defaultMaxIdleSecs) |
|
void |
statsReset() |
Resets the session usage statistics.
|
void |
willPassivate(Session session) |
Call the passivation listeners.
|
destroy, getComponentName, initialize, isAvailable, isDestroyed, isInitializedSessionIdGenerator getSessionIdGenerator()
SessionCache getSessionCache()
Scheduler getScheduler()
int getDefaultMaxIdleSecs()
void setDefaultMaxIdleSecs(int defaultMaxIdleSecs)
void access(Session session)
SessionHandler when a session is first accessed by a request.session - the session objectcomplete(Session)void complete(Session session)
SessionHandler when a session is last accessed by a request.session - the session objectaccess(Session)Session newSession(java.lang.String id)
Session.id - the session idSession getSession(java.lang.String id)
id - the session idvoid invalidate(java.lang.String id)
id - the id to invalidatejava.lang.String newSessionId(long seedTerm)
void addEventListener(java.util.EventListener listener)
listener - the session event listenerremoveEventListener(EventListener)void removeEventListener(java.util.EventListener listener)
listener - the session event listener to removeaddEventListener(EventListener)void clearEventListeners()
removeEventListener(EventListener)void sessionAttributeChanged(Session session, java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
session - the basic sessionname - name of the attributeoldValue - previous value of the attributenewValue - new value of the attributevoid didActivate(Session session)
session - the sessionvoid willPassivate(Session session)
session - the sessionlong getSessionTimeMax()
long getSessionTimeTotal()
double getSessionTimeMean()
double getSessionTimeStdDev()
int getSessionsCreated()
void statsReset()
Copyright © 2008–2018 The Aspectran Project. All rights reserved.