Package org.eclipse.jetty.io
Class IdleTimeout
- java.lang.Object
-
- org.eclipse.jetty.io.IdleTimeout
-
- Direct Known Subclasses:
AbstractEndPoint
@Deprecated(since="2021-05-27") public abstract class IdleTimeout extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.An Abstract implementation of an Idle Timeout.This implementation is optimised that timeout operations are not cancelled on every operation. Rather timeout are allowed to expire and a check is then made to see when the last operation took place. If the idle timeout has not expired, the timeout is rescheduled for the earliest possible time a timeout could occur.
-
-
Constructor Summary
Constructors Constructor Description IdleTimeout(Scheduler scheduler)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
getIdleFor()
Deprecated.long
getIdleTimeout()
Deprecated.Scheduler
getScheduler()
Deprecated.abstract boolean
isOpen()
Deprecated.This abstract method should be called to check if idle timeouts should still be checked.void
notIdle()
Deprecated.This method should be called when non-idle activity has taken place.void
onClose()
Deprecated.void
onOpen()
Deprecated.void
setIdleTimeout(long idleTimeout)
Deprecated.Sets the idle timeout in milliseconds.
-
-
-
Constructor Detail
-
IdleTimeout
public IdleTimeout(Scheduler scheduler)
Deprecated.- Parameters:
scheduler
- A scheduler used to schedule checks for the idle timeout.
-
-
Method Detail
-
getScheduler
public Scheduler getScheduler()
Deprecated.
-
getIdleFor
public long getIdleFor()
Deprecated.- Returns:
- the period of time, in milliseconds, that this object was idle
-
getIdleTimeout
public long getIdleTimeout()
Deprecated.- Returns:
- the idle timeout in milliseconds
- See Also:
setIdleTimeout(long)
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
Deprecated.Sets the idle timeout in milliseconds.
A value that is less than or zero disables the idle timeout checks.
- Parameters:
idleTimeout
- the idle timeout in milliseconds- See Also:
getIdleTimeout()
-
notIdle
public void notIdle()
Deprecated.This method should be called when non-idle activity has taken place.
-
onOpen
public void onOpen()
Deprecated.
-
onClose
public void onClose()
Deprecated.
-
isOpen
public abstract boolean isOpen()
Deprecated.This abstract method should be called to check if idle timeouts should still be checked.- Returns:
- True if the entity monitored should still be checked for idle timeouts
-
-