com.nhncorp.neptune.changelog.pipe
Class BufferPool

java.lang.Object
  extended by com.nhncorp.neptune.changelog.pipe.BufferPool

public class BufferPool
extends java.lang.Object


Method Summary
 void clear()
           
 java.nio.ByteBuffer[] getBuffer(int size)
           
 int getTotalAllocatedMemory()
           
 int getTotalBufferedMemory()
           
 int getTotalUsedMemory()
           
 void returnBuffer(java.nio.ByteBuffer[] bufferArray)
           
static BufferPool singleton()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

singleton

public static BufferPool singleton()

stop

public void stop()

clear

public void clear()

getBuffer

public java.nio.ByteBuffer[] getBuffer(int size)

returnBuffer

public void returnBuffer(java.nio.ByteBuffer[] bufferArray)

getTotalAllocatedMemory

public int getTotalAllocatedMemory()

getTotalUsedMemory

public int getTotalUsedMemory()

getTotalBufferedMemory

public int getTotalBufferedMemory()