/** Called by {@link Requestor#request(String,Object)} for two-way messages. * By default calls {@link #writeBuffers(List)} followed by * {@link #readBuffers()}. */ public List<ByteBuffer> transceive(List<ByteBuffer> request) throws IOException { lockChannel(); try { writeBuffers(request); return readBuffers(); } finally { unlockChannel(); } }
t.lockChannel(); try { t.writeBuffers(request.getBytes());
/** Called by {@link Requestor#request(String,Object)} for two-way messages. * By default calls {@link #writeBuffers(List)} followed by * {@link #readBuffers()}. */ public List<ByteBuffer> transceive(List<ByteBuffer> request) throws IOException { lockChannel(); try { writeBuffers(request); return readBuffers(); } finally { unlockChannel(); } }
t.lockChannel(); try { t.writeBuffers(request.getBytes());