com.evanmclean.evlib.cache
Class CloseableValueDisposer<V extends Closeable>
java.lang.Object
com.evanmclean.evlib.cache.CloseableValueDisposer<V>
- Type Parameters:
V
-
- All Implemented Interfaces:
- CacheValueDisposer<V>
public class CloseableValueDisposer<V extends Closeable>
- extends Object
- implements CacheValueDisposer<V>
A CacheValueDisposer
for objects that implement the Closeable
interface.
- Author:
- Evan McLean McLean Computer Services (see the
overview for copyright and licensing.)
Method Summary |
void |
dispose(V value)
Clean up a value that is expired or cleared. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseableValueDisposer
public CloseableValueDisposer()
dispose
public void dispose(V value)
- Clean up a value that is expired or cleared. Any exceptions thrown will be
ignored.
- Specified by:
dispose
in interface CacheValueDisposer<V extends Closeable>
- Parameters:
value
-