org.infinispan.client.hotrod.impl.transport.tcp
Class TcpTransport

java.lang.Object
  extended by org.infinispan.client.hotrod.impl.AbstractTransport
      extended by org.infinispan.client.hotrod.impl.transport.tcp.TcpTransport
All Implemented Interfaces:
Transport

public class TcpTransport
extends AbstractTransport

// TODO: Document this

Since:
4.1
Author:
mmarkus

Field Summary
static Logger log
           
 
Constructor Summary
TcpTransport(String host, int port)
           
 
Method Summary
 void connect()
           
 void flush()
           
 short readByte()
           
 byte[] readByteArray(int size)
           
 int readVInt()
           
 long readVLong()
           
 void release()
           
 void writeByte(short toWrite)
           
protected  void writeBytes(byte[] toAppend)
           
 void writeVInt(int length)
           
 void writeVLong(long l)
           
 
Methods inherited from class org.infinispan.client.hotrod.impl.AbstractTransport
readArray, readLong, readString, writeArray, writeLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final Logger log
Constructor Detail

TcpTransport

public TcpTransport(String host,
                    int port)
Method Detail

writeVInt

public void writeVInt(int length)

writeVLong

public void writeVLong(long l)

readVLong

public long readVLong()

readVInt

public int readVInt()

connect

public void connect()

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)

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.