Package org.eclipse.jetty.util.thread
Interface Sweeper.Sweepable
- All Known Implementing Classes:
AbstractConnectionPool
,DuplexConnectionPool
,HttpConnectionOverHTTP
,HttpConnectionOverHTTP2
,HttpDestination
,MultiplexConnectionPool
,RandomConnectionPool
,RoundRobinConnectionPool
,ValidatingConnectionPool
- Enclosing class:
- Sweeper
public static interface Sweeper.Sweepable
A Sweeper.Sweepable
resource implements this interface to
signal to a Sweeper
or to a parent container if it
needs to be swept or not.
Typical implementations will check their own internal state
and return true or false from sweep()
to indicate
whether they should be swept.
-
Method Summary
-
Method Details
-
sweep
boolean sweep()- Returns:
- whether this resource should be swept
-