org.infinispan.client.hotrod.impl
Class AbstractTransport

java.lang.Object
  extended by org.infinispan.client.hotrod.impl.AbstractTransport
All Implemented Interfaces:
Transport
Direct Known Subclasses:
NettyTransport, TcpTransport

public abstract class AbstractTransport
extends Object
implements Transport

// TODO: Document this

Since:
4.1
Author:
Mircea.Markus@jboss.com

Constructor Summary
AbstractTransport()
           
 
Method Summary
 byte[] readArray()
          reads an vint which is size; then an array having that size.
 long readLong()
           
 String readString()
           
 void writeArray(byte[] toAppend)
           
protected abstract  void writeBytes(byte[] toAppend)
           
 void writeLong(long longValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.client.hotrod.impl.Transport
flush, readByte, readByteArray, readVInt, readVLong, release, writeByte, writeVInt, writeVLong
 

Constructor Detail

AbstractTransport

public AbstractTransport()
Method Detail

readArray

public byte[] readArray()
Description copied from interface: Transport
reads an vint which is size; then an array having that size.

Specified by:
readArray in interface Transport

readString

public String readString()
Specified by:
readString in interface Transport

readLong

public long readLong()
Specified by:
readLong in interface Transport

writeLong

public void writeLong(long longValue)
Specified by:
writeLong in interface Transport

writeArray

public void writeArray(byte[] toAppend)
Specified by:
writeArray in interface Transport

writeBytes

protected abstract void writeBytes(byte[] toAppend)

Google Analytics

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