/*
 * Copyright (c) 2016-2020 chronicle.software
 */

package net.openhft.chronicle.core.io;

public interface QueryCloseable {
    default boolean isClosing() {
        return isClosed();
    }

    boolean isClosed();

    /* to be moved in x.22 to ManagedCloseable*/
    default void throwExceptionIfClosed() throws IllegalStateException {
        if (isClosing())
            throw new ClosedIllegalStateException(isClosed() ? "Closed" : "Closing");
    }
}

@@ -125,75 +125,410 @@
 e %7B%0A
-    default boolean isClosing() %7B%0A        return isClosed();%0A    %7D%0A
+%0A    /**%0A     * Is this object closed, or in the process of closing%0A     * %3Cp%3E%0A     * This should always be true if %7B@link #isClosed()%7D is true%0A     *%0A     * @return true if close() has been called (but not necessarily completed)%0A     */%0A    default boolean isClosing() %7B%0A        return isClosed();%0A    %7D%0A%0A    /**%0A     * Is this object closed%0A     *%0A     * @return true if close() has completed%0A     */
 %0A   

Add javadoc for QueryCloseable