public interface Pool<T>
Modifier and Type | Method and Description |
---|---|
void |
discard(T obj)
Discard an object.
|
T |
get()
Get the an object from the pool.
|
int |
getAvailableCount() |
int |
getCreateCount() |
int |
getCurrentSize() |
int |
getMaxSize() |
int |
getRemoveCount() |
void |
release(T obj)
Release the object from use.
|
void |
setMaxSize(int maxSize) |
void |
start()
Start the pool.
|
void |
stop()
Stop the pool.
|
void discard(T obj)
obj
- the objectT get()
int getAvailableCount()
int getCreateCount()
int getCurrentSize()
int getMaxSize()
int getRemoveCount()
void release(T obj)
obj
- the objectvoid setMaxSize(int maxSize)
void start()
void stop()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.