|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.priha.util.Pool
public class Pool
Simple object pool.
| Nested Class Summary | |
|---|---|
static class |
Pool.Poolable
|
static interface |
Pool.PoolableFactory
|
static class |
Pool.PoolExhaustedException
|
| Constructor Summary | |
|---|---|
Pool(Pool.PoolableFactory factory)
|
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes all returned objects from the pool. |
Pool.Poolable |
get(int milliseconds)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pool(Pool.PoolableFactory factory)
| Method Detail |
|---|
public int size()
public Pool.Poolable get(int milliseconds)
throws java.lang.InterruptedException,
Pool.PoolExhaustedException
java.lang.InterruptedException
Pool.PoolExhaustedExceptionpublic void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||