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 java.lang.Object implements IoBuffer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.nio.ByteBufferorigBuffer(package private) java.lang.ThreadownerThread
-
Constructor Summary
Constructors Constructor Description CachedIoBuffer(java.nio.ByteBuffer origBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcapacity()voidclear()voidflip()voidfree()java.nio.ByteBuffergetByteBuffer()java.nio.ByteBuffer[]getByteBuffers()booleanhasRemaining()booleanisDirect()intlimit()voidlimit(int limit)voidmark()java.nio.ByteOrderorder()voidorder(java.nio.ByteOrder byteOrder)intposition()voidposition(int pos)voidput(byte b)voidput(byte[] bytes)voidput(java.nio.ByteBuffer buff)voidputInt(int i)voidputLong(long l)voidputShort(short s)intremaining()voidreset()
-
-
-
Method Detail
-
getByteBuffers
public final java.nio.ByteBuffer[] getByteBuffers()
- Specified by:
getByteBuffersin interfaceIoBuffer
-
hasRemaining
public final boolean hasRemaining()
- Specified by:
hasRemainingin interfaceIoBuffer
-
getByteBuffer
public final java.nio.ByteBuffer getByteBuffer()
- Specified by:
getByteBufferin interfaceIoBuffer
-
-