Package net.rubyeye.xmemcached.buffer
Class CachedBufferAllocator.CachedIoBuffer
- java.lang.Object
-
- net.rubyeye.xmemcached.buffer.CachedBufferAllocator.CachedIoBuffer
-
- All Implemented Interfaces:
IoBuffer
- Enclosing class:
- CachedBufferAllocator
public class CachedBufferAllocator.CachedIoBuffer extends Object implements IoBuffer
-
-
Constructor Summary
Constructors Constructor Description CachedIoBuffer(ByteBuffer origBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()voidclear()voidflip()voidfree()ByteBuffergetByteBuffer()ByteBuffer[]getByteBuffers()booleanhasRemaining()booleanisDirect()intlimit()voidlimit(int limit)voidmark()ByteOrderorder()voidorder(ByteOrder byteOrder)intposition()voidposition(int pos)voidput(byte b)voidput(byte[] bytes)voidput(ByteBuffer buff)voidputInt(int i)voidputLong(long l)voidputShort(short s)intremaining()voidreset()
-
-
-
Constructor Detail
-
CachedIoBuffer
public CachedIoBuffer(ByteBuffer origBuffer)
-
-
Method Detail
-
getByteBuffers
public final ByteBuffer[] getByteBuffers()
- Specified by:
getByteBuffersin interfaceIoBuffer
-
hasRemaining
public final boolean hasRemaining()
- Specified by:
hasRemainingin interfaceIoBuffer
-
put
public final void put(ByteBuffer buff)
-
getByteBuffer
public final ByteBuffer getByteBuffer()
- Specified by:
getByteBufferin interfaceIoBuffer
-
-