Code example for Condition

Methods: signalAll

0
            this.completed = true;
            this.cancelled = true;
            if (this.callback != null) {
                this.callback.cancelled();
            } 
            this.condition.signalAll();
            return true; 
        } finally { 
            this.lock.unlock();
        } 
    } 
 
    public boolean isCancelled() { 
        return this.cancelled;
    } 
 
    public boolean isDone() { 
        return this.completed;
    }