public interface Transport
Modifier and Type | Method and Description |
---|---|
byte[] |
dumpStream() |
void |
flush() |
SocketAddress |
getRemoteSocketAddress()
Returns the address of the endpoint this transport is connected to, or
null if it is unconnected. |
TransportFactory |
getTransportFactory() |
void |
invalidate()
Invalidates transport instance.
|
int |
read4ByteInt() |
byte[] |
readArray()
reads an vint which is size; then an array having that size.
|
short |
readByte() |
byte[] |
readByteArray(int size) |
long |
readLong() |
String |
readString() |
int |
readUnsignedShort() |
int |
readVInt() |
long |
readVLong() |
void |
release() |
void |
writeArray(byte[] toAppend) |
void |
writeByte(short toWrite) |
void |
writeLong(long longValue) |
void |
writeString(String string) |
void |
writeVInt(int vint) |
void |
writeVLong(long l) |
TransportFactory getTransportFactory()
void writeArray(byte[] toAppend)
void writeByte(short toWrite)
void writeVInt(int vint)
void writeVLong(long l)
long readVLong()
int readVInt()
void flush()
short readByte()
void release()
byte[] readArray()
String readString()
byte[] readByteArray(int size)
long readLong()
void writeLong(long longValue)
int readUnsignedShort()
int read4ByteInt()
void writeString(String string)
byte[] dumpStream()
SocketAddress getRemoteSocketAddress()
null
if it is unconnected.SocketAddress
reprensenting the remote endpoint
of this transport, or null
if it is not connected
yet.void invalidate()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.