|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.io.MultiplexingWriteBufferPool
public final class MultiplexingWriteBufferPool
The MultiplexingWriteBufferPool acts as a WriteBufferPool from which a MultiBufferWriteBuffer can allocate and release WriteBuffers from/to.
| Field Summary | |
|---|---|
static int |
DEFAULT_BUF_SIZEThe default size of the smallest WriteBuffer. |
| Constructor Summary | |
|---|---|
MultiplexingWriteBufferPool()Default constructor. |
|
MultiplexingWriteBufferPool(int cSegments, int cbSegment, int cbBufferMin, int nGrowthFactor)Creates a MulitplexingWriteBufferPool. |
|
| Method Summary | |
|---|---|
WriteBuffer |
allocate(int cbPreviousTotal)Allocate a WriteBuffer for use by the MultiBufferWriteBuffer. |
void |
dispose()Invoked when all resources owned by the implementor can safely be released. |
int |
getMaximumCapacity()Determine the largest amount of aggregate WriteBuffer capacity that this factory can provide. |
void |
release(WriteBuffer buffer)Returns a WriteBuffer to the pool. |
| Field Detail |
|---|
public static final int DEFAULT_BUF_SIZE
| Constructor Detail |
|---|
public MultiplexingWriteBufferPool()
public MultiplexingWriteBufferPool(int cSegments,
int cbSegment,
int cbBufferMin,
int nGrowthFactor)
cSegments - the number of segmentscbSegment - the maximum number bytes each segment will consumecbBufferMin - the smallest buffer sizenGrowthFactor - the segment growth factor| Method Detail |
|---|
public int getMaximumCapacity()
getMaximumCapacity in interface MultiBufferWriteBuffer.WriteBufferPoolpublic WriteBuffer allocate(int cbPreviousTotal)
allocate in interface MultiBufferWriteBuffer.WriteBufferPoolcbPreviousTotal - the total number of bytes of capacity of the WriteBuffer objects that the MultiBufferWriteBuffer has thus far consumedpublic void release(WriteBuffer buffer)
AbstractWriteBuffer.clear(), or AbstractWriteBuffer.retain(int), or MultiBufferWriteBuffer.retain(int, int) is called.release in interface MultiBufferWriteBuffer.WriteBufferPoolbuffer - the WriteBuffer that is no longer being usedpublic void dispose()
dispose in interface Disposable
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||