|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avro.ipc.Transceiver
org.apache.avro.ipc.SocketTransceiver
SaslSocketTransceiver instead.
public class SocketTransceiver
A socket-based Transceiver implementation. This uses a simple,
non-standard wire protocol and is not intended for production services.
| Constructor Summary | |
|---|---|
SocketTransceiver(SocketAddress address)
Deprecated. |
|
SocketTransceiver(SocketChannel channel)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
close()
Deprecated. |
Protocol |
getRemote()
Deprecated. Returns the protocol passed to Transceiver.setRemote(Protocol). |
String |
getRemoteName()
Deprecated. |
boolean |
isConnected()
Deprecated. True if a handshake has been completed for this connection. |
List<ByteBuffer> |
readBuffers()
Deprecated. Called by the default definition of Transceiver.transceive(List). |
void |
setRemote(Protocol remote)
Deprecated. Called with the remote protocol when a handshake has been completed. |
void |
writeBuffers(List<ByteBuffer> buffers)
Deprecated. Called by Requestor.request(String,Object) for one-way messages. |
| Methods inherited from class org.apache.avro.ipc.Transceiver |
|---|
transceive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketTransceiver(SocketAddress address)
throws IOException
IOException
public SocketTransceiver(SocketChannel channel)
throws IOException
IOException| Method Detail |
|---|
public String getRemoteName()
getRemoteName in class Transceiver
public List<ByteBuffer> readBuffers()
throws IOException
TransceiverTransceiver.transceive(List).
readBuffers in class TransceiverIOException
public void writeBuffers(List<ByteBuffer> buffers)
throws IOException
TransceiverRequestor.request(String,Object) for one-way messages.
writeBuffers in class TransceiverIOExceptionpublic boolean isConnected()
Transceiver
isConnected in class Transceiverpublic void setRemote(Protocol remote)
TransceiverTransceiver.isConnected() should return true and #getRemote() should return this
protocol. Does nothing by default.
setRemote in class Transceiverpublic Protocol getRemote()
TransceiverTransceiver.setRemote(Protocol). Throws
IllegalStateException by default.
getRemote in class Transceiver
public void close()
throws IOException
close in interface Closeableclose in class TransceiverIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||