|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.io.ByteArrayWriteBuffer.Allocator
public static class ByteArrayWriteBuffer.Allocator
Allocator is a WriteBufferPool implementation which allocates a new ByteArrayWriteBuffer on each request to the pool, and does not retain the returned buffer. Essentially it is dummy pool which acts as an allocator.
Field Summary | |
---|---|
protected int |
m_cb The capacity of the ByteArrayWriteBuffer instances to allocate. |
Constructor Summary | |
---|---|
ByteArrayWriteBuffer.Allocator(int cb) Construct an Allocator for ByteArrayWriteBuffers of a given size. |
Method Summary | |
---|---|
WriteBuffer |
allocate(int cbPreviousTotal) Allocate a new ByteArrayWriteBuffer. |
int |
getMaximumCapacity() Determine the largest amount of aggregate WriteBuffer capacity that this factory can provide. |
void |
release(WriteBuffer buffer) Release the supplied buffer into the pool. |
Field Detail |
---|
protected int m_cb
Constructor Detail |
---|
public ByteArrayWriteBuffer.Allocator(int cb)
cb
- the capacity of the ByteArrayWriteBuffer to be allocatedMethod Detail |
---|
public int getMaximumCapacity()
getMaximumCapacity
in interface MultiBufferWriteBuffer.WriteBufferPool
public WriteBuffer allocate(int cbPreviousTotal)
allocate
in interface MultiBufferWriteBuffer.WriteBufferPool
cbPreviousTotal
- unusedcapacity
public void release(WriteBuffer buffer)
This method is a no op.
release
in interface MultiBufferWriteBuffer.WriteBufferPool
buffer
- unused
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |