void | add(Session session)- Add this Session to the set of active Sessions for this Manager.
|
void | addPropertyChangeListener(PropertyChangeListener listener)- Add a property change listener to this component.
|
void | backgroundProcess()- This method will be invoked by the context/container on a periodic
basis and allows the manager to implement
a method that executes periodic tasks, such as expiring sessions etc.
|
Session | createEmptySession()- Get a session from the recycled ones or create a new empty one.
|
Session | createSession()- Construct and return a new session object, based on the default
settings specified by this Manager's properties.
|
Session | findSession(String id)- Return the active Session, associated with this Manager, with the
specified session id (if any); otherwise return
null.
|
Session[] | findSessions()- Return the set of active Sessions associated with this Manager.
|
int | getActiveSessions()- Gets the number of currently active sessions.
|
Container | getContainer()- Return the Container with which this Manager is associated.
|
DefaultContext | getDefaultContext()- Return the DefaultContext with which this Manager is associated.
|
boolean | getDistributable()- Return the distributable flag for the sessions supported by
this Manager.
|
int | getExpiredSessions()- Gets the number of sessions that have expired.
|
String | getInfo()- Return descriptive information about this Manager implementation and
the corresponding version number, in the format
<description>/<version>.
|
int | getMaxActive()- Gets the maximum number of sessions that have been active at the same
time.
|
int | getMaxInactiveInterval()- Return the default maximum inactive interval (in seconds)
for Sessions created by this Manager.
|
int | getRejectedSessions()- Gets the number of sessions that were not created because the maximum
number of active sessions was reached.
|
int | getSessionCounter()- Returns the total number of sessions created by this manager.
|
int | getSessionIdLength()- Gets the session id length (in bytes) of Sessions created by
this Manager.
|
void | load()- Load any currently active sessions that were previously unloaded
to the appropriate persistence mechanism, if any.
|
void | remove(Session session)- Remove this Session from the active Sessions for this Manager.
|
void | removePropertyChangeListener(PropertyChangeListener listener)- Remove a property change listener from this component.
|
void | setContainer(Container container)- Set the Container with which this Manager is associated.
|
void | setDefaultContext(DefaultContext defaultContext)- Set the DefaultContext with which this Manager is associated.
|
void | setDistributable(boolean distributable)- Set the distributable flag for the sessions supported by this
Manager.
|
void | setExpiredSessions(int expiredSessions)- Sets the number of sessions that have expired.
|
void | setMaxActive(int maxActive)- (Re)sets the maximum number of sessions that have been active at the
same time.
|
void | setMaxInactiveInterval(int interval)- Set the default maximum inactive interval (in seconds)
for Sessions created by this Manager.
|
void | setRejectedSessions(int rejectedSessions)- Sets the number of sessions that were not created because the maximum
number of active sessions was reached.
|
void | setSessionCounter(int sessionCounter)- Sets the total number of sessions created by this manager.
|
void | setSessionIdLength(int idLength)- Sets the session id length (in bytes) for Sessions created by this
Manager.
|
void | unload()- Save any currently active sessions in the appropriate persistence
mechanism, if any.
|