|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public static interface MultiBufferWriteBuffer.WriteBufferPool
A WriteBufferPool is used to dynamically allocate WriteBuffer objects as the MultiBufferWriteBuffer requires them. It is expected that implementations may use pooling, or may create WriteBuffer objects as necessary.
| Method Summary | |
|---|---|
WriteBuffer |
allocate(int cbPreviousTotal)
Allocate a WriteBuffer for use by the MultiBufferWriteBuffer. |
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. |
| Method Detail |
|---|
int getMaximumCapacity()
WriteBuffer allocate(int cbPreviousTotal)
cbPreviousTotal - the total number of bytes of capacity of
the WriteBuffer objects that the MultiBufferWriteBuffer has
thus far consumed
void release(WriteBuffer buffer)
AbstractWriteBuffer.clear(), or
AbstractWriteBuffer.retain(int), or
MultiBufferWriteBuffer.retain(int, int) is called.
buffer - the WriteBuffer that is no longer being used
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||