Interface IIncidentResolutionController<T>
-
public interface IIncidentResolutionController<T>
Incident management controller. It's used to resolve incidents that require interactive participation of the user
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getResolution()
Gets the resolution.void
performInteraction()
Performs the interaction with the user.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.T
waitForResolution()
Waits for the resolution to be provided by 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. UsewaitForResolution()
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 thegetResolution()
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 benull
-
waitForResolution
T waitForResolution()
Waits for the resolution to be provided by the user- Returns:
- The result of the resolution
-
-