Search in sources :

Example 1 with Sweeper

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);
}
Also used : Sweeper(org.eclipse.jetty.util.thread.Sweeper)

Example 2 with Sweeper

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);
}
Also used : Sweeper(org.eclipse.jetty.util.thread.Sweeper)

Aggregations

Sweeper (org.eclipse.jetty.util.thread.Sweeper)2