Code example for AtomicBoolean

Methods: get

0
    public boolean isWriting() { 
        return delegate.isWriting();
    } 
 
    public boolean process(Channel channel, ByteBuffer buffer) throws IOException {
        if(allower.get())
            return delegate.process(channel, buffer);
        else 
            return false; 
    } 
     
     
 
}