Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.io.journal
Class RamJournalRM.BufferPool

java.lang.Object
  extended by com.tangosol.io.journal.RamJournalRM.BufferPool

Enclosing class:
RamJournalRM

protected class RamJournalRM.BufferPool
extends java.lang.Object

A pooling implementation for WriteBuffer objects.


Constructor Summary
RamJournalRM.BufferPool()
          Instantiate a buffer pool to provide buffers to the journal appending process.

 

Method Summary
 WriteBuffer allocate()
          Allocate a WriteBuffer from the buffer pool.
 int getCapacity()
          Determine the maximum number of buffers in the pool.
 int getSize()
          Determine the current number of buffers in the pool.
 void release(WriteBuffer buf)
          Return a buffer to the pool.
 java.lang.String toString()
          

 

Constructor Detail

RamJournalRM.BufferPool

public RamJournalRM.BufferPool()
Instantiate a buffer pool to provide buffers to the journal appending process.

Method Detail

allocate

public WriteBuffer allocate()
Allocate a WriteBuffer from the buffer pool.
Returns:
a WriteBuffer instance

release

public void release(WriteBuffer buf)
Return a buffer to the pool.
Parameters:
buf - the WriteBuffer to return to the pool

getSize

public int getSize()
Determine the current number of buffers in the pool.
Returns:
the number of buffers in the pool

getCapacity

public int getCapacity()
Determine the maximum number of buffers in the pool.
Returns:
the maximum supported number of buffers in the pool

toString

public java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.