Interface ObjectPool.ObjectSanitizer<T>
- Type Parameters:
T- The object type.
- Enclosing interface:
ObjectPool<O>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Sanitizes a previously leased object so it can be reused by the pool.
- Author:
- Christian Kohlschütter
-
Method Summary
-
Method Details
-
sanitize
Sanitizes a previously leased object so it can be reused by the pool; if the object should not be reused,falseis returned.- Parameters:
obj- The object to sanitize.- Returns:
trueif sanitization was successful,falseif the object should not be reused.
-