Uses of Class
com.github.robtimus.pool.PoolableObject
-
-
Uses of PoolableObject in com.github.robtimus.pool
Classes in com.github.robtimus.pool with type parameters of type PoolableObject Modifier and Type Class Description classPool<T extends PoolableObject<X>,X extends Exception>A simple object pool implementation.interfacePoolableObjectConsumer<T extends PoolableObject<X>,X extends Exception>An operation that takes a singlePoolableObject.interfacePoolableObjectFactory<T extends PoolableObject<X>,X extends Exception>A factory forPoolableObjects.Subclasses of PoolableObject in com.github.robtimus.pool Modifier and Type Class Description classObjectWrapper<T>A poolable object that wraps a single value.Methods in com.github.robtimus.pool with type parameters of type PoolableObject Modifier and Type Method Description static <T extends PoolableObject<None>>
Pool<T,None>Pool. throwingNone(PoolConfig config, Supplier<T> supplier, PoolLogger logger)Creates a new pool that throws no exceptions.Methods in com.github.robtimus.pool with parameters of type PoolableObject Modifier and Type Method Description voidPoolLogger. acquiredObject(PoolableObject<?> object, int idleCount, int poolSize)Called when aPoolableObjectis acquired from aPool.voidPoolLogger. createdNonPooledObject(PoolableObject<?> object)Called when a newPoolableObjecthas been created that will not be returned to the pool it was acquired from.voidPoolLogger. createdObject(PoolableObject<?> object)Called when a newPoolableObjecthas been created.voidPoolLogger. decreasedObjectRefCount(PoolableObject<?> object, int refCount)Called when a reference was removed from aPoolableObject.voidPoolLogger. increasedObjectRefCount(PoolableObject<?> object, int refCount)Called when an additional reference was added to aPoolableObject.voidPoolLogger. objectEvent(LogLevel level, PoolableObject<?> object, String message)Called whenlogEvent(LogLevel, String)is called.voidPoolLogger. objectEvent(LogLevel level, PoolableObject<?> object, Supplier<String> messageSupplier)Called whenlogEvent(LogLevel, Supplier)is called.voidPoolLogger. objectIdleTooLong(PoolableObject<?> object, int idleCount, int poolSize)Called when aPoolableObjecthas been idle for too long.voidPoolLogger. objectInvalidated(PoolableObject<?> object, int idleCount, int poolSize)Called when aPoolableObjectis no longer valid and has been removed from itsPool.voidPoolLogger. releasedObjectResources(PoolableObject<?> object)Called when the resources of aPoolableObjecthave been released.voidPoolLogger. releaseObjectResourcesFailed(PoolableObject<?> object, Exception exception)Called when an error occurs when quietly releasing the resources of aPoolableObject.voidPoolLogger. releasingObjectResources(PoolableObject<?> object)Called before the resources of aPoolableObjectwill be released.voidPoolLogger. returnedObject(PoolableObject<?> object, int idleCount, int poolSize)Called when aPoolableObjectis returned to aPool.
-