com.mchange.v1.util
Interface ClosableResource
- All Known Subinterfaces:
- AsynchronousRunner, ConnectionBundle, ConnectionBundlePool, FileIterator, Queuable, RunnableQueue, UIterator, UnreliableIterator
- All Known Implementing Classes:
- CarefulRunnableQueue, CBPCursor, ConnectionBundleImpl, ConnectionBundlePoolBean, ConnectionBundlePoolImpl, RoundRobinAsynchronousRunner, SimpleCursor, SimpleRunnableQueue, ThreadPerTaskAsynchronousRunner, ThreadPoolAsynchronousRunner, WrapperUIterator
public interface ClosableResource
An interface intended to be shared by the many sorts
of objects that offer some kind of close method to
cleanup resources they might be using. (I wish Sun
had defined, and used, such an interface in the standard
APIs.
Method Summary |
void |
close()
forces the release of any resources that might be
associated with this object. |
close
void close()
throws Exception
- forces the release of any resources that might be
associated with this object.
- Throws:
Exception