org.apache.jasper.util
クラス SimplePool

java.lang.Object
  |
  +--org.apache.jasper.util.SimplePool

public final class SimplePool
extends java.lang.Object

Simple object pool. Based on ThreadPool and few other classes The pool will ignore overflow and return null if empty.

作成者:
Gal Shachor, Costin

フィールドの概要
static int DEFAULT_SIZE
           
 
コンストラクタの概要
SimplePool()
           
SimplePool(int max)
           
 
メソッドの概要
 java.lang.Object get()
          Get an object from the pool, null if the pool is empty.
 int getMax()
          Return the size of the pool
 void put(java.lang.Object o)
          Add the object to the pool, silent nothing if the pool is full
 void set(java.lang.Object o)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

DEFAULT_SIZE

public static final int DEFAULT_SIZE
コンストラクタの詳細

SimplePool

public SimplePool()

SimplePool

public SimplePool(int max)
メソッドの詳細

set

public void set(java.lang.Object o)

put

public void put(java.lang.Object o)
Add the object to the pool, silent nothing if the pool is full

get

public java.lang.Object get()
Get an object from the pool, null if the pool is empty.

getMax

public int getMax()
Return the size of the pool


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.