|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| 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_cbThe 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 allocated| Method Detail |
|---|
public int getMaximumCapacity()
getMaximumCapacity in interface MultiBufferWriteBuffer.WriteBufferPoolpublic WriteBuffer allocate(int cbPreviousTotal)
allocate in interface MultiBufferWriteBuffer.WriteBufferPoolcbPreviousTotal - unusedcapacitypublic void release(WriteBuffer buffer)
This method is a no op.
release in interface MultiBufferWriteBuffer.WriteBufferPoolbuffer - unused
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||