|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.avalon.excalibur.pool.SingleThreadedPool
This is an Pool
that caches Poolable objects for reuse.
フィールドの概要 | |
protected PoolController |
m_controller
|
protected int |
m_count
|
protected ObjectFactory |
m_factory
|
protected int |
m_initial
|
protected int |
m_maximum
|
protected Poolable[] |
m_pool
|
コンストラクタの概要 | |
SingleThreadedPool(java.lang.Class clazz,
int initial,
int maximum)
|
|
SingleThreadedPool(ObjectFactory factory,
PoolController controller,
int initial,
int maximum)
|
メソッドの概要 | |
void |
fill(int fillSize)
This fills the pool to the size specified in parameter. |
Poolable |
get()
Retrieve an object from pool. |
int |
getCapacity()
Return the total number of slots in Pool |
int |
getSize()
推奨されていません。 use the official size() method instead |
void |
grow(int increase)
This fills the pool by the size specified in parameter. |
void |
initialize()
|
void |
put(Poolable poolable)
Place an object in pool. |
void |
shrink(int decrease)
This shrinks the pool by parameter size. |
int |
size()
Get the number of used slots in Pool |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected int m_count
protected Poolable[] m_pool
protected ObjectFactory m_factory
protected PoolController m_controller
protected int m_maximum
protected int m_initial
コンストラクタの詳細 |
public SingleThreadedPool(java.lang.Class clazz, int initial, int maximum) throws java.lang.Exception
public SingleThreadedPool(ObjectFactory factory, PoolController controller, int initial, int maximum) throws java.lang.Exception
メソッドの詳細 |
public void initialize() throws java.lang.Exception
public Poolable get() throws java.lang.Exception
Pool
内の get
public void put(Poolable poolable)
Pool
内の put
poolable
- the object to be placed in poolpublic final int getCapacity()
public final int getSize()
public final int size()
public final void fill(int fillSize) throws java.lang.Exception
public final void grow(int increase)
Resizable
内の grow
public final void shrink(int decrease)
Resizable
内の shrink
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |