public boolean full() { queue.assertExecuting(); return this.transport.full(); }
public boolean full() { return next.full(); }
public boolean full() { queue.assertExecuting(); return this.transport.full(); }
public boolean full() { getDispatchQueue().assertExecuting(); return this.transport.full(); }
public boolean full() { getDispatchQueue().assertExecuting(); return this.transport.full(); }
private void doPumpOut() { switch(state) { case CONNECTING: case CONNECTED: break; default: return; } int size = hawtdispatchTransport.getProtocolCodec().getWriteBufferSize(); byte data[] = new byte[size]; boolean done = false; int pumped = 0; while( !done && !hawtdispatchTransport.full() ) { int count = protonTransport.output(data, 0, size); if( count > 0 ) { pumped += count; boolean accepted = hawtdispatchTransport.offer(new Buffer(data, 0, count)); assert accepted: "Should be accepted since the transport was not full"; } else { done = true; } } if( pumped > 0 && !hawtdispatchTransport.full() ) { listener.processRefill(); } }
public boolean offer(StompFrame frame, boolean addContentLength) { getDispatchQueue().assertExecuting(); if( this.transport.full() ) { return false; } else { if( addContentLength && SEND.equals(frame.action()) ) { frame.addContentLengthHeader(); } return this.transport.offer(frame); } }
public boolean offer(StompFrame frame, boolean addContentLength) { getDispatchQueue().assertExecuting(); if( this.transport.full() ) { return false; } else { if( addContentLength && SEND.equals(frame.action()) ) { frame.addContentLengthHeader(); } return this.transport.offer(frame); } }