org.apache.tomcat.util.collections
public final class SimplePool extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE
Deprecated.
|
Constructor and Description |
---|
SimplePool()
Deprecated.
|
SimplePool(int size)
Deprecated.
|
SimplePool(int size,
int max)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get()
Deprecated.
Get an object from the pool, null if the pool is empty.
|
int |
getCount()
Deprecated.
Number of object in the pool
|
int |
getMax()
Deprecated.
Return the size of the pool
|
void |
put(java.lang.Object o)
Deprecated.
Add the object to the pool, silent nothing if the pool is full
|
void |
set(java.lang.Object o)
Deprecated.
|
void |
shutdown()
Deprecated.
|
public static final int DEFAULT_SIZE
public SimplePool()
public SimplePool(int size)
public SimplePool(int size, int max)
public void set(java.lang.Object o)
public void put(java.lang.Object o)
public java.lang.Object get()
public int getMax()
public int getCount()
public void shutdown()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.