Interface | Description |
---|---|
BasePoolService |
Defines base objects object pool's functionality which is to be implemented by the validating
and non-validating pools.
|
Holder<T> |
A holder interface which needs to be implemented by the thin wrapper class enclosing
the taken from this object pool objects.
|
HolderValidatingPoolService<T> |
Extends the functionality defined by
BasePoolService with
take and restore methods which provide validation for whether the
restored (returned) object is one which has been taken before that from this object pool,
as well as whether the object is currently in taken state. |
NonValidatingPoolService<T> |
Extends the functionality defined by
BasePoolService with simple
take and restore methods which don't provide any means for validation of whether the
restored (returned) object is one which has been taken before that from this object pool,
neither whether the object is currently in taken state. |
PoolObjectFactory<T> |
Defines an interface which is to be implemented by a factory which will be used by
the pools defined in this package to control the lifecycle of the object pool's objects.
|
Class | Description |
---|---|
AbstractBasePoolService |
Base abstract class which is to be extended and which provides common functionality for
both validating and non-validating object pool's implementations.
|
AbstractValidatingPoolService<T> |
Base abstract class which is to be extended and which provides common functionality for
validating object pool's implementations.
|
ConcurrentHolderLinkedPool<T> |
An implementation of a validating object pool which is build on (composed) using
a non-validating
ConcurrentLinkedPool and is utilising a ConcurrentHashMap
for the validation of the restored objects. |
ConcurrentLinkedPool<T> |
An implementation of a non-validating object pool based on a
ConcurrentLinkedQueue
and a Semaphore . |
Copyright © 2013-2014 Simeon Malchev. All Rights Reserved.