Interface CloseHandler<T>

  • Type Parameters:
    T - the type of resource
    All Superinterfaces:
    EventListener

    public interface CloseHandler<T>
    extends EventListener
    A handler which is notified of a resource close.
    • Method Detail

      • handleClose

        void handleClose​(T closed,
                         IOException exception)
        Receive a notification that the resource was closed.
        Parameters:
        closed - the closed resource
        exception - the exception which occurred during close, if any