protected static class FlashJournalRM.BufferPool extends Object
| Constructor and Description |
|---|
BufferPool(int cbBuffer, int cMaxBuffers)
Instantiate a buffer pool to provide buffers to the journal appending process.
|
| Modifier and Type | Method and Description |
|---|---|
FlashJournalRM.Buffer |
allocate(byte[] abOv)
Allocate a buffer from the buffer pool.
|
int |
getSize()
Determine the current size of the pool.
|
void |
release(FlashJournalRM.Buffer buf)
Return a buffer to the pool.
|
String |
toString() |
public BufferPool(int cbBuffer,
int cMaxBuffers)
cbBuffer - the size of each buffercMaxBuffers - the maximum number of buffers to hold on topublic FlashJournalRM.Buffer allocate(byte[] abOv)
abOv - the overlay byte[]public void release(FlashJournalRM.Buffer buf)
buf - the Buffer to return to the poolpublic int getSize()