Interface SharedCloseable

    • Method Detail

      • sharedCopy

        SharedCloseable sharedCopy()
        Returns:
        a new instance of the object representing the same state and backed by the same underlying resources. Coordinates with the original (and other instances) when the underlying resource should be closed. Throws an exception if the shared resource has already been closed.
      • close

        java.lang.Throwable close​(java.lang.Throwable accumulate)
      • sharedCopyOrNull

        static <T extends SharedCloseable> T sharedCopyOrNull​(T sharedCloseable)