public class LocalTransceiver extends Transceiver
Constructor and Description |
---|
LocalTransceiver(Responder responder) |
Modifier and Type | Method and Description |
---|---|
String |
getRemoteName() |
List<ByteBuffer> |
readBuffers()
Called by the default definition of
Transceiver.transceive(List) . |
List<ByteBuffer> |
transceive(List<ByteBuffer> request)
Called by
Requestor.request(String,Object) for two-way messages. |
void |
writeBuffers(List<ByteBuffer> buffers)
Called by
Requestor.request(String,Object) for one-way messages. |
close, getRemote, isConnected, lockChannel, setRemote, transceive, unlockChannel
public LocalTransceiver(Responder responder)
public String getRemoteName()
getRemoteName
in class Transceiver
public List<ByteBuffer> transceive(List<ByteBuffer> request) throws IOException
Transceiver
Requestor.request(String,Object)
for two-way messages. By
default calls Transceiver.writeBuffers(List)
followed by Transceiver.readBuffers()
.transceive
in class Transceiver
IOException
public List<ByteBuffer> readBuffers() throws IOException
Transceiver
Transceiver.transceive(List)
.readBuffers
in class Transceiver
IOException
public void writeBuffers(List<ByteBuffer> buffers) throws IOException
Transceiver
Requestor.request(String,Object)
for one-way messages.writeBuffers
in class Transceiver
IOException
Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.