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 class
Pool<T extends PoolableObject<X>,X extends Exception>
A simple object pool implementation.interface
PoolableObjectConsumer<T extends PoolableObject<X>,X extends Exception>
An operation that takes a singlePoolableObject
.interface
PoolableObjectFactory<T extends PoolableObject<X>,X extends Exception>
A factory forPoolableObject
s.Subclasses of PoolableObject in com.github.robtimus.pool Modifier and Type Class Description class
ObjectWrapper<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 void
PoolLogger. acquiredObject(PoolableObject<?> object, int idleCount, int poolSize)
Called when aPoolableObject
is acquired from aPool
.void
PoolLogger. createdNonPooledObject(PoolableObject<?> object)
Called when a newPoolableObject
has been created that will not be returned to the pool it was acquired from.void
PoolLogger. createdObject(PoolableObject<?> object)
Called when a newPoolableObject
has been created.void
PoolLogger. decreasedObjectRefCount(PoolableObject<?> object, int refCount)
Called when a reference was removed from aPoolableObject
.void
PoolLogger. increasedObjectRefCount(PoolableObject<?> object, int refCount)
Called when an additional reference was added to aPoolableObject
.void
PoolLogger. objectEvent(LogLevel level, PoolableObject<?> object, String message)
Called whenlogEvent(LogLevel, String)
is called.void
PoolLogger. objectEvent(LogLevel level, PoolableObject<?> object, Supplier<String> messageSupplier)
Called whenlogEvent(LogLevel, Supplier)
is called.void
PoolLogger. objectIdleTooLong(PoolableObject<?> object, int idleCount, int poolSize)
Called when aPoolableObject
has been idle for too long.void
PoolLogger. objectInvalidated(PoolableObject<?> object, int idleCount, int poolSize)
Called when aPoolableObject
is no longer valid and has been removed from itsPool
.void
PoolLogger. releasedObjectResources(PoolableObject<?> object)
Called when the resources of aPoolableObject
have been released.void
PoolLogger. releaseObjectResourcesFailed(PoolableObject<?> object, Exception exception)
Called when an error occurs when quietly releasing the resources of aPoolableObject
.void
PoolLogger. releasingObjectResources(PoolableObject<?> object)
Called before the resources of aPoolableObject
will be released.void
PoolLogger. returnedObject(PoolableObject<?> object, int idleCount, int poolSize)
Called when aPoolableObject
is returned to aPool
.
-