|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.io.SimpleBufferHandle
public class SimpleBufferHandle
A handle to a ByteBuffer.
| Constructor Summary | |
|---|---|
SimpleBufferHandle(ByteBuffer buffer)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBufferHandle(ByteBuffer buffer)
| Method Detail |
|---|
public boolean isEmpty()
BufferHandle
isEmpty in interface BufferHandlepublic ByteBuffer getBuffer()
BufferHandle
getBuffer in interface BufferHandlepublic ByteBuffer getLargeBuffer()
BufferHandle
getLargeBuffer in interface BufferHandlepublic void possiblyFlush()
BufferHandle
possiblyFlush in interface BufferHandle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||