A D E F G L M N O P R S T V

A

AbstractPool - Class in org.d_haven.mpool
The AbstractPool is the base class for all the pool types.
AbstractPool(ObjectFactory) - Constructor for class org.d_haven.mpool.AbstractPool
Initialize this instance of an AbstractPool using the supplied ObjectFactory.
acquire() - Method in class org.d_haven.mpool.AbstractPool
Acquire an instance of the pooled object.
acquire() - Method in interface org.d_haven.mpool.Pool
Acquire an instance of the pooled object.
addPoolListener(PoolListener) - Method in class org.d_haven.mpool.AbstractPool
Add a pool listener to the pool.
addPoolListener(PoolListener) - Method in interface org.d_haven.mpool.Pool
Add a pool listener to the pool.

D

DEFAULT_MAX - Static variable in class org.d_haven.mpool.ManagePoolsCommand
 
DefaultPoolManager - Class in org.d_haven.mpool
This interface is for a PoolManager that creates pools that are managed asynchronously.
DefaultPoolManager(CommandManager) - Constructor for class org.d_haven.mpool.DefaultPoolManager
Create the DefaultPoolManager with the supplied command manager.
DELAY_INTERVAL - Static variable in class org.d_haven.mpool.ManagePoolsCommand
 
dispose() - Method in class org.d_haven.mpool.FixedSizePool
Dispose this pool and remove all elements.
dispose(Object) - Method in interface org.d_haven.mpool.ObjectFactory
Performs any deconstruction that is necessary for the object.
dispose() - Method in class org.d_haven.mpool.VariableSizePool
Dispose of this pool so that it is empty an no longer used.
disposeInstance(Object) - Method in class org.d_haven.mpool.AbstractPool
Dispose an instance of a pooled object.
doAcquire() - Method in class org.d_haven.mpool.AbstractPool
Perform the actual work of acquiring the object from the pool.
doAcquire() - Method in class org.d_haven.mpool.FixedSizePool
 
doAcquire() - Method in class org.d_haven.mpool.VariableSizePool
 
doRelease(Object) - Method in class org.d_haven.mpool.AbstractPool
Perform the actual logic to release the pooled object back to the pool.
doRelease(Object) - Method in class org.d_haven.mpool.FixedSizePool
 
doRelease(Object) - Method in class org.d_haven.mpool.VariableSizePool
 

E

EMPTY_PARAM_DEFS - Static variable in class org.d_haven.mpool.ReflectionRecyclePolicy
 
EMPTY_PARAMS - Static variable in class org.d_haven.mpool.ReflectionRecyclePolicy
 
execute() - Method in class org.d_haven.mpool.ManagePoolsCommand
 

F

fireAquiredEvent(Object) - Method in class org.d_haven.mpool.AbstractPool
Fire the PoolListener.objectAquired(Object) event to all the listeners.
fireCreatedEvent(Object) - Method in class org.d_haven.mpool.AbstractPool
Fire the PoolListener.objectCreated(Object) event to all the listeners.
fireCreationFailedEvent(Exception) - Method in class org.d_haven.mpool.AbstractPool
Fire the PoolListener.objectCreationFailed(Exception) event to all the listeners.
fireDisposedEvent(Object) - Method in class org.d_haven.mpool.AbstractPool
Fire the PoolListener.objectDisposed(Object) event to all the listeners.
fireDisposeFailedEvent(Object, Exception) - Method in class org.d_haven.mpool.AbstractPool
Fire the PoolListener.objectDisposalFailed(Object, Exception) event to all the listeners.
fireReleasedEvent(Object) - Method in class org.d_haven.mpool.AbstractPool
Fire the PoolListener.objectReleased(Object) event to all the listeners.
FixedSizePool - Class in org.d_haven.mpool
This is an Pool that caches Poolable objects for reuse.
FixedSizePool(ObjectFactory, int) - Constructor for class org.d_haven.mpool.FixedSizePool
Create a fixed size pool using the object factory and size supplied.
FixedSizePool(ObjectFactory, int, long) - Constructor for class org.d_haven.mpool.FixedSizePool
Create a fixed size pool using the object factory, size, and timeout supplied.

G

getCreatedClass() - Method in interface org.d_haven.mpool.ObjectFactory
Get the class of the object you are creating.
getDelayInterval() - Method in class org.d_haven.mpool.ManagePoolsCommand
 
getManagedPool(ObjectFactory, int) - Method in class org.d_haven.mpool.DefaultPoolManager
Return a managed pool that has a controller.
getManagedPool(ObjectFactory, int) - Method in interface org.d_haven.mpool.PoolManager
Return a managed pool that has a controller.
getNumberOfRepeats() - Method in class org.d_haven.mpool.ManagePoolsCommand
 
getPoolListeners() - Method in class org.d_haven.mpool.AbstractPool
Get the list of pool listeners.
getRepeatInterval() - Method in class org.d_haven.mpool.ManagePoolsCommand
 
getTimeout() - Method in class org.d_haven.mpool.FixedSizePool
Get the timeout in milliseconds for this pool.
grow(int) - Method in interface org.d_haven.mpool.ManagablePool
Grow by the specified amount.
grow(int) - Method in class org.d_haven.mpool.VariableSizePool
 

L

listenerIterator() - Method in class org.d_haven.mpool.AbstractPool
 

M

m_buffer - Variable in class org.d_haven.mpool.FixedSizePool
 
m_buffer - Variable in class org.d_haven.mpool.VariableSizePool
 
m_disposed - Variable in class org.d_haven.mpool.FixedSizePool
 
m_disposed - Variable in class org.d_haven.mpool.VariableSizePool
 
m_factory - Variable in class org.d_haven.mpool.AbstractPool
 
m_factoryMap - Variable in class org.d_haven.mpool.DefaultPoolManager
 
m_grow - Variable in class org.d_haven.mpool.ManagePoolsCommand
 
m_listeners - Variable in class org.d_haven.mpool.AbstractPool
 
m_max - Variable in class org.d_haven.mpool.ManagePoolsCommand
 
m_methodName - Variable in class org.d_haven.mpool.ReflectionRecyclePolicy
 
m_min - Variable in class org.d_haven.mpool.ManagePoolsCommand
 
m_pools - Variable in class org.d_haven.mpool.DefaultPoolManager
 
m_pools - Variable in class org.d_haven.mpool.ManagePoolsCommand
 
m_recyclePolicy - Variable in class org.d_haven.mpool.RecyclePoolListener
 
m_stepTime - Variable in class org.d_haven.mpool.FixedSizePool
 
m_timeout - Variable in class org.d_haven.mpool.FixedSizePool
 
ManagablePool - Interface in org.d_haven.mpool
This is the interface for Pools that are not a fixed size.
ManagePoolsCommand - Class in org.d_haven.mpool
The ManagePoolsCommand will manage a set of pools using the same set of parameters.
ManagePoolsCommand(List) - Constructor for class org.d_haven.mpool.ManagePoolsCommand
Create the ManagePoolsCommand with the supplied list of pools.

N

newInstance() - Method in class org.d_haven.mpool.AbstractPool
Create a new instance of the object being pooled.
newInstance() - Method in interface org.d_haven.mpool.ObjectFactory
Create a new instance of the object being pooled.
NullRecyclePolicy - Class in org.d_haven.mpool
The NullRecyclePolicy is provided to turn off any recycling of pooled objects for a pool.
NullRecyclePolicy() - Constructor for class org.d_haven.mpool.NullRecyclePolicy
 

O

objectAquired(Object) - Method in class org.d_haven.mpool.PoolAdaptor
Notifies the listener when an object is being accessed from the pool.
objectAquired(Object) - Method in interface org.d_haven.mpool.PoolListener
Notifies the listener when an object is being accessed from the pool.
objectCreated(Object) - Method in class org.d_haven.mpool.PoolAdaptor
Notifies the listener when the pool creates a new object to introduce into the pool.
objectCreated(Object) - Method in interface org.d_haven.mpool.PoolListener
Notifies the listener when the pool creates a new object to introduce into the pool.
objectCreationFailed(Exception) - Method in class org.d_haven.mpool.PoolAdaptor
Notifies the listener when the pool fails to create a new object when it is asked for.
objectCreationFailed(Exception) - Method in interface org.d_haven.mpool.PoolListener
Notifies the listener when the pool fails to create a new object when it is asked for.
objectDisposalFailed(Object, Exception) - Method in class org.d_haven.mpool.PoolAdaptor
Notifies the listener when an object could not properly be disposed.
objectDisposalFailed(Object, Exception) - Method in interface org.d_haven.mpool.PoolListener
Notifies the listener when an object disposal failed.
objectDisposed(Object) - Method in class org.d_haven.mpool.PoolAdaptor
Notifies the listener when an object is being disposed so that it will never be reused.
objectDisposed(Object) - Method in interface org.d_haven.mpool.PoolListener
Notifies the listener when an object is being disposed so that it will never be reused.
ObjectFactory - Interface in org.d_haven.mpool
This interface is to define how an ObjectFactory is defined.
objectReleased(Object) - Method in class org.d_haven.mpool.PoolAdaptor
Notifies the listener when an object is being returned to the pool.
objectReleased(Object) - Method in interface org.d_haven.mpool.PoolListener
Notifies the listener when an object is being returned to the pool.
objectReleased(Object) - Method in class org.d_haven.mpool.RecyclePoolListener
Recycle the object on returning.
org.d_haven.mpool - package org.d_haven.mpool
 

P

Pool - Interface in org.d_haven.mpool
This interface is to define how a Pool is used.
PoolAdaptor - Class in org.d_haven.mpool
Created by IntelliJ IDEA.
PoolAdaptor() - Constructor for class org.d_haven.mpool.PoolAdaptor
 
PoolException - Exception in org.d_haven.mpool
A wrapper exception to notify the user when something exceptional happens in a pool.
PoolException(String) - Constructor for exception org.d_haven.mpool.PoolException
Create a PoolException with the supplied message.
PoolException(String, Throwable) - Constructor for exception org.d_haven.mpool.PoolException
Create a PoolException with the supplied message and exception.
PoolListener - Interface in org.d_haven.mpool
The PoolListener interface provides a couple intercept points as well as a way to find out when an object fails to be disposed properly.
PoolManager - Interface in org.d_haven.mpool
This interface is for a PoolManager that creates pools that are managed asynchronously.
popLast() - Method in class org.d_haven.mpool.FixedSizePool
 
popLast() - Method in class org.d_haven.mpool.VariableSizePool
 

R

recycle(Object) - Method in class org.d_haven.mpool.NullRecyclePolicy
All objects are not supposed to recycle, so this method does nothing.
recycle(Object) - Method in interface org.d_haven.mpool.RecyclePolicy
Recycle the object included.
recycle(Object) - Method in class org.d_haven.mpool.ReflectionRecyclePolicy
Recycle the object included.
recycle(Object) - Method in class org.d_haven.mpool.ResettableRecyclePolicy
Recycle the object included.
RecyclePolicy - Interface in org.d_haven.mpool
The recycle policy is present so that you can use whatever method you desire to recycle your objects and components.
RecyclePoolListener - Class in org.d_haven.mpool
Recycle components through a PoolListener.
RecyclePoolListener(RecyclePolicy) - Constructor for class org.d_haven.mpool.RecyclePoolListener
Create a RecyclePoolListener using the supplied policy.
ReflectionRecyclePolicy - Class in org.d_haven.mpool
The ReflectionRecyclePolicy allows the user to specify a particular method to use for recycling their pooled objects regardless of whether the object implements any interfaces or not.
ReflectionRecyclePolicy(String) - Constructor for class org.d_haven.mpool.ReflectionRecyclePolicy
Create the ReflectionRecyclePolicy using the supplied method name as the magic method that gets called when an object is returned to the pool.
release(Object) - Method in class org.d_haven.mpool.AbstractPool
Release the instance of the pooled object.
release(Object) - Method in interface org.d_haven.mpool.Pool
Release the instance of the pooled object.
removePoolListener(PoolListener) - Method in class org.d_haven.mpool.AbstractPool
Remove a pool listener from the pool.
removePoolListener(PoolListener) - Method in interface org.d_haven.mpool.Pool
Remove a pool listener from the pool.
reset() - Method in interface org.d_haven.mpool.Resettable
This method should be implemented to remove all costly resources in object.
Resettable - Interface in org.d_haven.mpool
This interface standardizes the behaviour of a resettable object.
ResettableRecyclePolicy - Class in org.d_haven.mpool
This implementation of the ResettableRecyclePolicy is the default implementation for the system.
ResettableRecyclePolicy() - Constructor for class org.d_haven.mpool.ResettableRecyclePolicy
 

S

shrink(int) - Method in interface org.d_haven.mpool.ManagablePool
Shrink the pool by the specified amount.
shrink(int) - Method in class org.d_haven.mpool.VariableSizePool
 
size() - Method in interface org.d_haven.mpool.ManagablePool
Determine the pool's current size.
size() - Method in class org.d_haven.mpool.VariableSizePool
 

T

toString() - Method in class org.d_haven.mpool.DefaultPoolManager
 
toString() - Method in class org.d_haven.mpool.FixedSizePool
 
toString() - Method in class org.d_haven.mpool.ManagePoolsCommand
 
toString() - Method in class org.d_haven.mpool.NullRecyclePolicy
 
toString() - Method in class org.d_haven.mpool.PoolAdaptor
 
toString() - Method in class org.d_haven.mpool.RecyclePoolListener
 
toString() - Method in class org.d_haven.mpool.ReflectionRecyclePolicy
 
toString() - Method in class org.d_haven.mpool.ResettableRecyclePolicy
 
toString() - Method in class org.d_haven.mpool.VariableSizePool
 

V

VariableSizePool - Class in org.d_haven.mpool
This is an Pool that caches Poolable objects for reuse.
VariableSizePool(ObjectFactory, int) - Constructor for class org.d_haven.mpool.VariableSizePool
Create a VariableSizePool with the supplied factory and initial size.

A D E F G L M N O P R S T V