Interface ExtensionContext.Store.CloseableResource

  • Enclosing interface:
    ExtensionContext.Store


    @API(status=STABLE,
         since="5.1")
    public static interface ExtensionContext.Store.CloseableResource
    Classes implementing this interface indicate that they want to close() some underlying resource or resources when the enclosing Store is closed.

    Note that the CloseableResource API is only honored for objects stored within an extension context Store.

    Since:
    5.1
    • Method Detail

      • close

        void close​()
            throws java.lang.Throwable
        Close underlying resources.
        Throws:
        java.lang.Throwable - any throwable will be caught and rethrown