handle
public <RECOVER_TYPE> RECOVER_TYPE handle(FailureReport<RECOVER_TYPE> report,
String clientName)
Reports a failure to this resolver. The resolver will choose the appropriate action
to resove the failuer. This may include calling the recover functions potentially
provided through report
. If they are claade, this method will return the
value generated by the recover functions. If the report
describes a
non-recoverable failure, this method will not return. This method might also not
return if the handler thinks it’s not appropriate to continue.
- Specified by:
handle
in interface FailureResolver
- Type Parameters:
RECOVER_TYPE
- The recover value’s type.
- Parameters:
report
- Information about the failure. Will never be null
.
clientName
- The name of the instance reporting the failure. Will never be
null
- Returns:
- The value the reporter should use instead of the one that was expected to
be generated by the failed action. Is created by the recover functions in
report
.