org.infinispan.client.hotrod.impl.transport.tcp
Class TcpTransport
java.lang.Object
org.infinispan.client.hotrod.impl.transport.AbstractTransport
org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport
- All Implemented Interfaces:
- Transport
@ThreadSafe
public class TcpTransport
- extends AbstractTransport
Transport implementation based on TCP.
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
TcpTransport
public TcpTransport(InetSocketAddress serverAddress,
TransportFactory transportFactory)
writeVInt
public void writeVInt(int vInt)
writeVLong
public void writeVLong(long l)
readVLong
public long readVLong()
readVInt
public int readVInt()
writeBytes
protected void writeBytes(byte[] toAppend)
- Specified by:
writeBytes
in class AbstractTransport
writeByte
public void writeByte(short toWrite)
flush
public void flush()
readByte
public short readByte()
release
public void release()
readByteArray
public byte[] readByteArray(int size)
getServerAddress
public InetSocketAddress getServerAddress()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
destroy
public void destroy()
isValid
public boolean isValid()
getId
public long getId()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.