Code example for Set

Methods: remove

0
    } 
 
    private void onFinishHandling(Connection<Object> connection) {
        lock.lock();
        try { 
            inProgress.remove(connection); 
            condition.signalAll();
        } finally { 
            lock.unlock();
        } 
    } 
 
    /** 
     * Blocks until all connections have been handled or abandoned. 
     */ 
    public void stop() { 
        lock.lock();
        try { 
            while (!inProgress.isEmpty()) { 
                try {