|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rabbit.io.CacheBufferHandle
public class CacheBufferHandle
A handle to a ByteBuffer that uses a buffer handler
Constructor Summary | |
---|---|
CacheBufferHandle(BufferHandler bh)
|
Method Summary | |
---|---|
ByteBuffer |
getBuffer()
Get a byte buffer of reasonable size, the buffer will have been cleared. |
ByteBuffer |
getLargeBuffer()
Get a byte buffer of reasonable size, the buffer will have been cleared. |
boolean |
isEmpty()
Check if this handle is empty, that is if no buffer exists or the buffer is empty. |
void |
possiblyFlush()
release a buffer if possible. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheBufferHandle(BufferHandler bh)
Method Detail |
---|
public boolean isEmpty()
BufferHandle
isEmpty
in interface BufferHandle
public ByteBuffer getBuffer()
BufferHandle
getBuffer
in interface BufferHandle
public ByteBuffer getLargeBuffer()
BufferHandle
getLargeBuffer
in interface BufferHandle
public void possiblyFlush()
BufferHandle
possiblyFlush
in interface BufferHandle
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |