public interface FailureCallback
| Modifier and Type | Method and Description |
|---|---|
boolean |
failureDetected(RemoteCommunicator remoteCommunicator,
Command command,
CommandResponse response,
Throwable t)
The callback method that is called when a failure is detected by a remote communicator.
|
boolean failureDetected(RemoteCommunicator remoteCommunicator, Command command, CommandResponse response, Throwable t)
true.remoteCommunicator - the communicator object that detected the failurecommand - the command that was attempted to be sent but failedresponse - the response of the command, if one was even received (this is normally null,
but under some circumstances this might actually be a non-null object)t - the actual exception that describes the failure - if this is null, the exception
should be found in the exception field of the responsetrue if the callback would like the communicator to retry the request; false
if the failure should be considered unrecoverable and the communicator should continue with its
error handlingCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.