Package org.eclipse.jetty.server.session
Class HouseKeeper
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.session.HouseKeeper
-
- All Implemented Interfaces:
LifeCycle
@ManagedObject @Deprecated(since="2021-05-27") public class HouseKeeper extends AbstractLifeCycle
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HouseKeeper There is 1 session HouseKeeper per SessionIdManager instance.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_PERIOD_MS
Deprecated.
-
Constructor Summary
Constructors Constructor Description HouseKeeper()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getIntervalSec()
Deprecated.Get the period between scavenge cycles.void
scavenge()
Deprecated.Periodically do session housekeepingvoid
setIntervalSec(long sec)
Deprecated.Set the period between scavenge cyclesvoid
setSessionIdManager(SessionIdManager sessionIdManager)
Deprecated.SessionIdManager associated with this scavengerjava.lang.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
-
-
-
Field Detail
-
DEFAULT_PERIOD_MS
public static final long DEFAULT_PERIOD_MS
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setSessionIdManager
public void setSessionIdManager(SessionIdManager sessionIdManager)
Deprecated.SessionIdManager associated with this scavenger- Parameters:
sessionIdManager
- the session id manager
-
setIntervalSec
public void setIntervalSec(long sec) throws java.lang.Exception
Deprecated.Set the period between scavenge cycles- Parameters:
sec
- the interval (in seconds)- Throws:
java.lang.Exception
- if any error during restarting the scavenging
-
getIntervalSec
@ManagedAttribute(value="secs between scavenge cycles", readonly=true) public long getIntervalSec()
Deprecated.Get the period between scavenge cycles.- Returns:
- the interval (in seconds)
-
scavenge
public void scavenge()
Deprecated.Periodically do session housekeeping
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
-