public interface ObjectPoolHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
disposeObject(T object)
Disposes the object.
|
T |
makeObject()
Makes a new instance of the pooled object.
|
void |
shutdown()
Releases any allocated resources.
|
void |
testObject(T object)
Tests the borrowed object.
|
ObjectPoolConfiguration |
validate(ObjectPoolConfiguration original)
Validates, copies and updates the original
ObjectPoolConfiguration . |
ObjectPoolConfiguration validate(ObjectPoolConfiguration original)
ObjectPoolConfiguration
.
This class can validate and if necessary it changes the original
configuration.original
- custom configured instance.original
config.T makeObject()
void testObject(T object)
object
- the pooled object.void disposeObject(T object)
testObject(Object)
,
or for reasons specific to the pool implementation.)object
- The "dropped" object.void shutdown()
Copyright © 2019. All rights reserved.