krati.core.array.entry
Class EntryPool<T extends EntryValue>

java.lang.Object
  extended by krati.core.array.entry.EntryPool<T>

public class EntryPool<T extends EntryValue>
extends Object


Constructor Summary
EntryPool(EntryFactory<T> factory, int entryCapacity)
           
 
Method Summary
 boolean addToRecycleQueue(Entry<T> entry)
           
 boolean addToServiceQueue(Entry<T> entry)
           
 void clear()
           
 int getEntryCapacity()
           
 EntryFactory<T> getEntryFactory()
           
 int getReycleQueueSize()
           
 int getServiceQueueSize()
           
 boolean isRecycleQueueEmpty()
           
 boolean isServiceQueueEmpty()
           
 Entry<T> next()
           
 Entry<T> pollFromService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryPool

public EntryPool(EntryFactory<T> factory,
                 int entryCapacity)
Method Detail

getEntryCapacity

public final int getEntryCapacity()

getEntryFactory

public final EntryFactory<T> getEntryFactory()

isServiceQueueEmpty

public boolean isServiceQueueEmpty()

isRecycleQueueEmpty

public boolean isRecycleQueueEmpty()

pollFromService

public Entry<T> pollFromService()

getServiceQueueSize

public int getServiceQueueSize()

getReycleQueueSize

public int getReycleQueueSize()

addToServiceQueue

public boolean addToServiceQueue(Entry<T> entry)

addToRecycleQueue

public boolean addToRecycleQueue(Entry<T> entry)

next

public Entry<T> next()

clear

public void clear()


Copyright © 2011. All Rights Reserved.