Skip navigation links
A C D G I L M N O P R S T 

A

afterReduce(int, int, Throwable) - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
An after reduce pool hook.

C

calculateReduction() - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
Calculates the number of currently allocated on the pool elements that needs to be destroyed/deallocated, as a result of the stats collected during the just finished observational time period.
ConcurrentLinkedPool<T> - Class in org.vibur.objectpool
An object pool based on a ConcurrentLinkedQueue guarded by a Semaphore.
ConcurrentLinkedPool(PoolObjectFactory<T>, int, int, boolean) - Constructor for class org.vibur.objectpool.ConcurrentLinkedPool
Creates a new ConcurrentLinkedPool with the given PoolObjectFactory, initial and max sizes, fairness setting.
ConcurrentLinkedPool(PoolObjectFactory<T>, int, int, boolean, Listener<T>) - Constructor for class org.vibur.objectpool.ConcurrentLinkedPool
Creates a new ConcurrentLinkedPool with the given PoolObjectFactory, initial and max sizes, fairness setting.
create() - Method in interface org.vibur.objectpool.PoolObjectFactory
Creates a new object for the calling object pool.
createdTotal() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the total number of created objects which currently exist for this object pool.
createdTotal() - Method in interface org.vibur.objectpool.PoolService
Returns the total number of created objects which currently exist for this object pool.

D

destroy(T) - Method in interface org.vibur.objectpool.PoolObjectFactory
A method which will be called when an object from the object pool needs to be destroyed, which is when the PoolObjectFactory.readyToTake(T) or PoolObjectFactory.readyToRestore(T) methods have returned false, or when the pool is shrinking its size (via calling reduceCreated), or when the pool is terminating.
drainCreated() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Tries to remove (and destroy) as many created objects from this object pool as possible.
drainCreated() - Method in interface org.vibur.objectpool.PoolService
Tries to remove (and destroy) as many created objects from this object pool as possible.

G

getState() - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
Returns the state of the underlying thread.
getState() - Method in interface org.vibur.objectpool.reducer.ThreadedPoolReducer
Returns the state of the underlying thread.
getTaken() - Method in class org.vibur.objectpool.listener.TakenListener
 

I

initialSize() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the initialSize of this object pool at construction time.
initialSize() - Method in interface org.vibur.objectpool.PoolService
Returns the initialSize of this object pool at construction time.
isFair() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the fairness setting of this object pool.
isFair() - Method in interface org.vibur.objectpool.PoolService
Returns the fairness setting of this object pool.
isTerminated() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the current terminated state of this object pool.
isTerminated() - Method in interface org.vibur.objectpool.PoolService
Returns the current terminated state of this object pool.

L

listener() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the Listener interface instance associated with this object pool, if any.
Listener<T> - Interface in org.vibur.objectpool.listener
An instance of this interface can be supplied to the pool at its creation time, and its methods will be called upon calling the pool take and restore operations.
listener() - Method in interface org.vibur.objectpool.PoolService
Returns the Listener interface instance associated with this object pool, if any.

M

MAX_REDUCTION_FRACTION - Static variable in class org.vibur.objectpool.reducer.SamplingPoolReducer
 
maxSize() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the maxSize of this object pool.
maxSize() - Method in interface org.vibur.objectpool.PoolService
Returns the maxSize of this object pool.
minRemainingCreated - Variable in class org.vibur.objectpool.reducer.SamplingPoolReducer
 

N

newObject() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
 

O

onRestore(T) - Method in interface org.vibur.objectpool.listener.Listener
 
onRestore(T) - Method in class org.vibur.objectpool.listener.TakenListener
 
onTake(T) - Method in interface org.vibur.objectpool.listener.Listener
 
onTake(T) - Method in class org.vibur.objectpool.listener.TakenListener
 
org.vibur.objectpool - package org.vibur.objectpool
 
org.vibur.objectpool.listener - package org.vibur.objectpool.listener
 
org.vibur.objectpool.reducer - package org.vibur.objectpool.reducer
 

P

PoolObjectFactory<T> - Interface in org.vibur.objectpool
Defines an interface which is to be implemented by the factory that will be used by the object pools defined in this package, in order to control the lifecycle of the objects in the pools.
PoolService<T> - Interface in org.vibur.objectpool
Defines the object pool operations.

R

readyToRestore(T) - Method in interface org.vibur.objectpool.PoolObjectFactory
A validation/passivation hook which will be called by the restore methods of ConcurrentLinkedPool when an object taken before that from the object pool is about to be restored (returned back) to the pool.
readyToTake(T) - Method in interface org.vibur.objectpool.PoolObjectFactory
A validation/activation hook which will be called by the take... methods of ConcurrentLinkedPool when an object from the object pool is requested by the application.
reduceCreated(int, boolean) - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Tries to remove (and destroy) up to reduction objects from the object pool.
reduceCreated(int, boolean) - Method in interface org.vibur.objectpool.PoolService
Tries to remove (and destroy) up to reduction objects from the object pool.
reducePool() - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
 
remainingCapacity() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the remaining capacity of this object pool, i.e.
remainingCapacity() - Method in interface org.vibur.objectpool.PoolService
Returns the remaining capacity of this object pool, i.e.
remainingCreated() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the number of remaining created objects which currently exist in this object pool.
remainingCreated() - Method in interface org.vibur.objectpool.PoolService
Returns the number of remaining created objects which currently exist in this object pool.
restore(T) - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Restores (returns) an object to the object pool.
restore(T, boolean) - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Restores (returns) an object to the object pool.
restore(T) - Method in interface org.vibur.objectpool.PoolService
Restores (returns) an object to the object pool.
restore(T, boolean) - Method in interface org.vibur.objectpool.PoolService
Restores (returns) an object to the object pool.

S

samplePool() - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
 
SamplingPoolReducer<T> - Class in org.vibur.objectpool.reducer
A sampling pool reducer util, which is waken up a given number of times during a predefined period of time, and checks whether the number of available allocated objects in the object pool needs to be reduced.
SamplingPoolReducer(PoolService<T>, long, TimeUnit, int) - Constructor for class org.vibur.objectpool.reducer.SamplingPoolReducer
Creates a new SamplingPoolReducer with the given PoolService and timeInterval settings.
start() - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
Starts this pool reducer, which starts its underlying daemon thread.
start() - Method in interface org.vibur.objectpool.reducer.ThreadedPoolReducer
Starts this pool reducer, which starts its underlying daemon thread.

T

take() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Takes an object from the object pool if there is such available.
take() - Method in interface org.vibur.objectpool.PoolService
Takes an object from the object pool if there is such available.
taken() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Returns the number of objects taken from this object pool.
taken() - Method in interface org.vibur.objectpool.PoolService
Returns the number of objects taken from this object pool.
TakenListener<T> - Class in org.vibur.objectpool.listener
An instance of this class can be supplied to the pool at its creation time, and its methods will be called upon calling the pool take and restore operations.
TakenListener() - Constructor for class org.vibur.objectpool.listener.TakenListener
 
TakenListener(int) - Constructor for class org.vibur.objectpool.listener.TakenListener
 
takeUninterruptibly() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Takes an object from the object pool if there is such available.
takeUninterruptibly() - Method in interface org.vibur.objectpool.PoolService
Takes an object from the object pool if there is such available.
terminate() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Terminates this object pool.
terminate() - Method in interface org.vibur.objectpool.PoolService
Terminates this object pool.
terminate() - Method in class org.vibur.objectpool.reducer.SamplingPoolReducer
Terminates this pool reducer, which terminates its underlying daemon thread.
terminate() - Method in interface org.vibur.objectpool.reducer.ThreadedPoolReducer
Terminates this pool reducer, which terminates its underlying daemon thread.
ThreadedPoolReducer - Interface in org.vibur.objectpool.reducer
The pool reducers implementing this interface will create one daemon service thread which will be started when the reducer's start() method is called, and will be alive until the terminate() method is called or until the calling application exits.
toString() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
tryTake(long, TimeUnit) - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Takes an object from the object pool if there is such available.
tryTake() - Method in class org.vibur.objectpool.ConcurrentLinkedPool
Tries to take an object from the object pool if there is one which is immediately available.
tryTake(long, TimeUnit) - Method in interface org.vibur.objectpool.PoolService
Takes an object from the object pool if there is such available.
tryTake() - Method in interface org.vibur.objectpool.PoolService
Tries to take an object from the object pool if there is one which is immediately available.
A C D G I L M N O P R S T 
Skip navigation links

Copyright © 2013-2016 vibur.org. All Rights Reserved.