Field Summary |
|
protected int | checkInterval The interval (in seconds) between checks for expired sessions. |
protected int | debug The debugging detail level for this component. |
protected static String | info The descriptive information about this implementation. |
protected LifecycleSupport | lifecycle The lifecycle event support for this component. |
protected Manager | manager The Manager with which this JDBCStore is associated. |
protected StringManager | sm The string manager for this package. |
protected boolean | started |
protected static String | storeName Name to register for this Store, used for logging. |
protected PropertyChangeSupport | support The property change support for this component. |
protected Thread | thread The background thread. |
protected boolean | threadDone The background thread completion semaphore. |
protected String | threadName Name to register for the background thread. |
Method Summary |
|
public void | addLifecycleListener(LifecycleListener listener) Add a lifecycle event listener to this component. |
public void | addPropertyChangeListener(PropertyChangeListener listener) Add a property change listener to this component. |
public LifecycleListener[] | findLifecycleListeners() Get the lifecycle listeners associated with this lifecycle. |
public int | getCheckInterval() Return the check interval (in seconds) for this Store. |
public int | getDebug() Return the debugging detail level for this Store. |
public String | getInfo() Return the info for this Store. |
public Manager | getManager() Return the Manager with which the Store is associated. |
public String | getStoreName() Return the name for this Store, used for logging. |
public String | getThreadName() Return the thread name for this Store. |
protected void | log(String message) Log a message on the Logger associated with our Container (if any). |
protected void | processExpires() Called by our background reaper thread to check if Sessions
saved in our store are subject of being expired. |
public void | removeLifecycleListener(LifecycleListener listener) Remove a lifecycle event listener from this component. |
public void | removePropertyChangeListener(PropertyChangeListener listener) Remove a property change listener from this component. |
public void | run() The background thread that checks for session timeouts and shutdown. |
public void | setCheckInterval(int checkInterval) Set the check interval (in seconds) for this Store. |
public void | setDebug(int debug) Set the debugging detail level for this Store. |
public void | setManager(Manager manager) Set the Manager with which this Store is associated. |
public void | start() Prepare for the beginning of active use of the public methods of this
component. |
public void | stop() Gracefully terminate the active use of the public methods of this
component. |
protected void | threadSleep() Sleep for the duration specified by the checkInterval
property. |
protected void | threadStart() Start the background thread that will periodically check for
session timeouts. |
protected void | threadStop() Stop the background thread that is periodically checking for
session timeouts. |