Interface IIncidentResolutionController<T>


  • public interface IIncidentResolutionController<T>
    Incident management controller. It's used to resolve incidents that require interactive participation of the user
    • Method Detail

      • getResolution

        T getResolution()
        Gets the resolution. The resolution is avilable only after the resolution is provided. Until then the result isn't guaranteed. It's a part of the internal API and shouldn't be called directly. Use waitForResolution() instead
        Returns:
        The provided resolution, if any. May be null
      • performInteraction

        void performInteraction()
        Performs the interaction with the user. As the result of the interaction the getResolution() should provide the resolution result
      • setCallback

        void setCallback​(Supplier<T> callback)
        Sets the callback for notifying of the controller to resolve the incident It's a part of the internal API and shouldn't be called directly.
        Parameters:
        callback - The callback. May not be null
      • waitForResolution

        T waitForResolution()
        Waits for the resolution to be provided by the user
        Returns:
        The result of the resolution