|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.impl.CachedByteBufferAllocator
public class CachedByteBufferAllocator
A buffer allocator which allocates and caches NIO (direct) byte buffers.
| Field Summary | |
|---|---|
static int |
bufferSize
This variable stores the size of the NIO byte buffer that should be allocated according to properties. |
| Constructor Summary | |
|---|---|
CachedByteBufferAllocator()
|
|
| Method Summary | |
|---|---|
java.nio.ByteBuffer |
get()
Get a byte buffer. |
void |
put(java.nio.ByteBuffer buffer)
Return buffer to a cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int bufferSize
| Constructor Detail |
|---|
public CachedByteBufferAllocator()
| Method Detail |
|---|
public java.nio.ByteBuffer get()
public void put(java.nio.ByteBuffer buffer)
buffer - buffer to be returned in the cache.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||