Interface ACMResource<TResource>

  • All Superinterfaces:
    java.lang.AutoCloseable, AutoCloseableNoThrow, java.lang.Comparable<TResource>

    public interface ACMResource<TResource>
    extends AutoCloseableNoThrow, java.lang.Comparable<TResource>
    ACMResource provides the ability to check if an autocloseable object has been closed or not. This is important in the ACMResroucePool, because if someone had closed the object, then this Resource is no longer valid. Knowing the object is no longer valid allows the ACMResourcePool to automatically remove the item from the Pool.
    • Method Detail

      • isClosed

        boolean isClosed()
      • setKeepAlive

        void setKeepAlive​(boolean iKeepAlive)