use of org.eclipse.jetty.util.thread.Sweeper in project jetty.project by eclipse.
the class HttpDestination method doStart.
@Override
protected void doStart() throws Exception {
this.connectionPool = newConnectionPool(client);
addBean(connectionPool);
super.doStart();
Sweeper sweeper = client.getBean(Sweeper.class);
if (sweeper != null && connectionPool instanceof Sweeper.Sweepable)
sweeper.offer((Sweeper.Sweepable) connectionPool);
}
use of org.eclipse.jetty.util.thread.Sweeper in project jetty.project by eclipse.
the class HttpDestination method doStop.
@Override
protected void doStop() throws Exception {
Sweeper sweeper = client.getBean(Sweeper.class);
if (sweeper != null && connectionPool instanceof Sweeper.Sweepable)
sweeper.remove((Sweeper.Sweepable) connectionPool);
super.doStop();
removeBean(connectionPool);
}
Aggregations