ariba.util.core
Class BufferPool<T extends java.nio.Buffer>

java.lang.Object
  extended by ariba.util.core.SelfCleaningPool<T>
      extended by ariba.util.core.BufferPool<T>
All Implemented Interfaces:
Target
Direct Known Subclasses:
ByteBufferPool, CharBufferPool

public abstract class BufferPool<T extends java.nio.Buffer>
extends SelfCleaningPool<T>

This abstract self cleaning pool of Buffer instances can be extended by subclasses for specific types of Buffers, for example CharBuffer and ByteBuffer. It maintains a buffer length that is set in the constructor and never changed. All the buffers in the pool will be uniformly the same size.


Nested Class Summary
 
Nested classes/interfaces inherited from class ariba.util.core.SelfCleaningPool
SelfCleaningPool.PoolFloat<T>
 
Constructor Summary
BufferPool(int bufferLength)
           
 
Method Summary
 int getBufferLength()
          Returns newly constructed instance of the resource being managed.
 
Methods inherited from class ariba.util.core.SelfCleaningPool
get, getEventLoop, getIdleTimeoutSeconds, performCommand, registerEventLoop, release, setIdleTimeoutSeconds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferPool

public BufferPool(int bufferLength)
Method Detail

getBufferLength

public int getBufferLength()
Returns newly constructed instance of the resource being managed. This factory method must be implemented by subclasses.



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.