public final class SimplePool extends Object
Constructor and Description |
---|
SimplePool(int max) |
Modifier and Type | Method and Description |
---|---|
Object |
get()
Get an object from the pool, null if the pool is empty.
|
int |
getMax()
Return the size of the pool
|
void |
put(Object o)
Add the object to the pool, silent nothing if the pool is full
|
public void put(Object o)
o
- public Object get()
public int getMax()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.