com.cosylab.epics.caj.impl
Class CachedByteBufferAllocator
java.lang.Object
com.cosylab.epics.caj.impl.CachedByteBufferAllocator
public class CachedByteBufferAllocator
- extends Object
A buffer allocator which allocates and caches NIO (direct) byte buffers.
- Version:
- $id$
- Author:
- Matej Sekoranja
|
Field Summary |
static int |
bufferSize
This variable stores the size of the NIO byte buffer that should be allocated
according to properties. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufferSize
public static int bufferSize
- This variable stores the size of the NIO byte buffer that should be allocated
according to properties.
CachedByteBufferAllocator
public CachedByteBufferAllocator()
get
public ByteBuffer get()
- Get a byte buffer.
- Returns:
- a byte buffer.
put
public void put(ByteBuffer buffer)
- Return buffer to a cache.
- Parameters:
buffer - buffer to be returned in the cache.
Copyright © 2004-2013 Cosylab. All Rights Reserved.