public static interface Pool.Factory
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create()
Create a new object for the Pool.
|
void |
destroy(java.lang.Object o)
Destroy the specified object.
|
boolean |
validate(java.lang.Object object)
Validates the specified object.
|
boolean |
validateKey(java.lang.Object key)
Validates the specified key.
|
java.lang.Object create() throws java.lang.Exception
java.lang.Exception
- an Exception if no object was creatable.void destroy(java.lang.Object o)
o
- the object to destroy.boolean validate(java.lang.Object object)
object
- the object to validate.boolean validateKey(java.lang.Object key)
key
- the key to validate.