Interface ClosableResource

All Known Subinterfaces:
AsynchronousRunner, ConnectionBundle, ConnectionBundlePool, FileIterator, Queuable, RunnableQueue, ThreadPoolReportingAsynchronousRunner, 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

    Modifier and Type
    Method
    Description
    void
    forces the release of any resources that might be associated with this object.
  • Method Details

    • close

      void close() throws Exception
      forces the release of any resources that might be associated with this object.
      Throws:
      Exception