@ManagedObject public class HouseKeeper extends AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_PERIOD_MS |
| Constructor and Description |
|---|
HouseKeeper() |
| Modifier and Type | Method and Description |
|---|---|
long |
getIntervalSec()
Get the period between scavenge cycles.
|
void |
scavenge()
Periodically do session housekeeping
|
void |
setIntervalSec(long sec)
Set the period between scavenge cycles
|
void |
setSessionIdManager(SessionIdManager sessionIdManager)
SessionIdManager associated with this scavenger
|
String |
toString() |
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stoppublic static final long DEFAULT_PERIOD_MS
public void setSessionIdManager(SessionIdManager sessionIdManager)
sessionIdManager - the session id managerpublic void setIntervalSec(long sec)
throws Exception
sec - the interval (in seconds)Exception - if any error during restarting the scavenging@ManagedAttribute(value="secs between scavenge cycles", readonly=true) public long getIntervalSec()
public void scavenge()
public String toString()
toString in class AbstractLifeCycleObject.toString()Copyright © 2010 - 2020 Adobe. All Rights Reserved