public class DatagramTransceiver extends Transceiver
Transceiver
implementation. This uses a simple,
non-standard wire protocol and is not intended for production services.Constructor and Description |
---|
DatagramTransceiver(DatagramChannel channel) |
DatagramTransceiver(SocketAddress remote) |
Modifier and Type | Method and Description |
---|---|
String |
getRemoteName() |
List<ByteBuffer> |
readBuffers()
Called by the default definition of
Transceiver.transceive(List) . |
void |
writeBuffers(List<ByteBuffer> buffers)
Called by
Requestor.request(String,Object) for one-way messages. |
close, getRemote, isConnected, lockChannel, setRemote, transceive, transceive, unlockChannel
public DatagramTransceiver(SocketAddress remote) throws IOException
IOException
public DatagramTransceiver(DatagramChannel channel)
public String getRemoteName()
getRemoteName
in class Transceiver
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-2014 The Apache Software Foundation. All Rights Reserved.