Interface EarlyResponseSendListener


  • public interface EarlyResponseSendListener
    Callback that can be provided to operation step handlers for operations like 'reload' and 'shutdown' where the response needs to be sent to the caller before the operation completes. The handler will invoke the callback when the operation has reached the point where it is safe to send the response.

    No callback should be attached before the operation is committed.

    Author:
    Brian Stansberry
    • Method Detail

      • sendEarlyResponse

        void sendEarlyResponse​(OperationContext.ResultAction resultAction)
        Informs the management kernel that it is ok to send an early response to the operation. Note: It is valid for this method to be invoked multiple times for the same listener. It is the responsibility of the listener implementation to ensure that only one response is sent to the caller.
        Parameters:
        resultAction - the result of the operation for which an early response is being sent