Code example for Condition

Methods: signalAll

0
            return; 
        } 
        this.shutdown = true;
        this.lock.lock();
        try { 
            this.condition.signalAll();
        } finally { 
            this.lock.unlock();
        } 
    } 
 
    public void write(final byte[] b, int off, int len) throws IOException {
        if (b == null) {
            return; 
        } 
        this.lock.lock();
        try { 
            if (this.shutdown || this.endOfStream) {
                throw new IllegalStateException("Buffer already closed for writing");
            } 
            setInputMode();