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.ByteBuffer
origBuffer
(package private) java.lang.Thread
ownerThread
-
Constructor Summary
Constructors Constructor Description CachedIoBuffer(java.nio.ByteBuffer origBuffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
capacity()
void
clear()
void
flip()
void
free()
java.nio.ByteBuffer
getByteBuffer()
java.nio.ByteBuffer[]
getByteBuffers()
boolean
hasRemaining()
boolean
isDirect()
int
limit()
void
limit(int limit)
void
mark()
java.nio.ByteOrder
order()
void
order(java.nio.ByteOrder byteOrder)
int
position()
void
position(int pos)
void
put(byte b)
void
put(byte[] bytes)
void
put(java.nio.ByteBuffer buff)
void
putInt(int i)
void
putLong(long l)
void
putShort(short s)
int
remaining()
void
reset()
-
-
-
Method Detail
-
getByteBuffers
public final java.nio.ByteBuffer[] getByteBuffers()
- Specified by:
getByteBuffers
in interfaceIoBuffer
-
hasRemaining
public final boolean hasRemaining()
- Specified by:
hasRemaining
in interfaceIoBuffer
-
getByteBuffer
public final java.nio.ByteBuffer getByteBuffer()
- Specified by:
getByteBuffer
in interfaceIoBuffer
-
-