Package org.bedework.util.caching
Class ObjectPool<T>
- java.lang.Object
-
- org.bedework.util.caching.ObjectPool<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Serializable,org.bedework.util.logging.Logged
public class ObjectPool<T> extends Object implements Serializable, org.bedework.util.logging.Logged
Implement a pool of objects whose values appear frequently enough that pooling will result in a substantial reduction in space and or cpu.Objects pooled must be either immutable or sharable because they will be shared.
- Author:
- Mike Douglass
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObjectPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(T val)org.bedework.util.logging.BwLoggergetLogger()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-