105106107108109110111112113
*/ public IoFuture<ByteBuffer, Void> read(CompletionHandler<ByteBuffer, Void> handler) { if (!readPending.compareAndSet(false, true)) { throw new ReadPendingException(); } return new Reader(handler).start(); }
649650651652653654655656657658659
/** Reads a message from the connection. */ @Override void read() { synchronized (readLock) { if (isReading) { throw new ReadPendingException(); } isReading = true; } asyncMsgChannel.read(this); }
697698699700701702703704705706707
107108109110111112113114115