public interface Observer<T>
Observer
interface is used to observe the session
activity within the session manager. This enables tracking of all
sessions created and destroyed by the session manager. Once the
session is created the observer start
method is
invoked and when the session is canceled the cancel
method is invoked. Observations allow specialized monitoring.SessionManager
Modifier and Type | Method and Description |
---|---|
void |
cancel(Session<T> session)
This method is called after the session has been canceled or
expired.
|
void |
create(Session<T> session)
This method is called after the session has been created but
before it is used.
|
void create(Session<T> session)
session
- this is the session instance that was createdvoid cancel(Session<T> session)
session
- this is the session object that is canceled