public interface RetryContext
Modifier and Type | Field and Description |
---|---|
static String |
FAILED_DISPATCHER |
static String |
FAILED_RECEIVER |
static String |
FAILED_REQUESTER |
Modifier and Type | Method and Description |
---|---|
void |
addReturnMessage(MuleMessage result) |
String |
getDescription() |
MuleMessage |
getFirstReturnMessage() |
Throwable |
getLastFailure()
The most recent failure which prevented the context from validating the connection.
|
Map<Object,Object> |
getMetaInfo() |
MuleContext |
getMuleContext() |
MuleMessage[] |
getReturnMessages() |
boolean |
isOk()
Note that it's possible for an implementation to return false and have no failure specified, thus
the subsequent
getLastFailure() may return null. |
void |
setFailed(Throwable lastFailure)
Typically called by validation logic to mark a problem and an optional root cause.
|
void |
setOk()
Typically called by validation logic to mark no problems with the current connection.
|
void |
setReturnMessages(MuleMessage[] returnMessages) |
static final String FAILED_RECEIVER
static final String FAILED_DISPATCHER
static final String FAILED_REQUESTER
Map<Object,Object> getMetaInfo()
MuleMessage[] getReturnMessages()
MuleMessage getFirstReturnMessage()
void setReturnMessages(MuleMessage[] returnMessages)
void addReturnMessage(MuleMessage result)
String getDescription()
MuleContext getMuleContext()
Throwable getLastFailure()
isOk()
should be consulted first.void setOk()
void setFailed(Throwable lastFailure)
lastFailure
- the most recent failure, can be nullboolean isOk()
getLastFailure()
may return null.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.