@ThreadSafe public class TcpTransport extends AbstractTransport
Constructor and Description |
---|
TcpTransport(SocketAddress serverAddress,
TransportFactory transportFactory) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
byte[] |
dumpStream() |
boolean |
equals(Object o) |
void |
flush() |
long |
getId() |
SocketAddress |
getRemoteSocketAddress()
Returns the address of the endpoint this transport is connected to, or
null if it is unconnected. |
SocketAddress |
getServerAddress() |
int |
hashCode() |
void |
invalidate()
Invalidates transport instance.
|
boolean |
isValid() |
short |
readByte() |
byte[] |
readByteArray(int size) |
int |
readVInt() |
long |
readVLong() |
void |
release() |
String |
toString() |
void |
writeByte(short toWrite) |
protected void |
writeBytes(byte[] toAppend) |
void |
writeVInt(int vInt) |
void |
writeVLong(long l) |
getTransportFactory, read4ByteInt, readArray, readLong, readString, readUnsignedShort, writeArray, writeLong, writeString
public TcpTransport(SocketAddress serverAddress, TransportFactory transportFactory)
public void writeVInt(int vInt)
public void writeVLong(long l)
public long readVLong()
public int readVInt()
protected void writeBytes(byte[] toAppend)
writeBytes
in class AbstractTransport
public void writeByte(short toWrite)
public void flush()
public short readByte()
public void release()
public byte[] readByteArray(int size)
public SocketAddress getServerAddress()
public void destroy()
public boolean isValid()
public long getId()
public byte[] dumpStream()
public SocketAddress getRemoteSocketAddress()
Transport
null
if it is unconnected.SocketAddress
reprensenting the remote endpoint
of this transport, or null
if it is not connected
yet.public void invalidate()
Transport
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.