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(org.mule.runtime.api.message.Message result) |
String |
getDescription() |
org.mule.runtime.api.message.Message |
getFirstReturnMessage() |
Throwable |
getLastFailure()
The most recent failure which prevented the context from validating the connection.
|
Map<Object,Object> |
getMetaInfo() |
MuleContext |
getMuleContext() |
org.mule.runtime.api.message.Message[] |
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(org.mule.runtime.api.message.Message[] returnMessages) |
static final String FAILED_RECEIVER
static final String FAILED_DISPATCHER
static final String FAILED_REQUESTER
Map<Object,Object> getMetaInfo()
org.mule.runtime.api.message.Message[] getReturnMessages()
org.mule.runtime.api.message.Message getFirstReturnMessage()
void setReturnMessages(org.mule.runtime.api.message.Message[] returnMessages)
void addReturnMessage(org.mule.runtime.api.message.Message 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–2017 MuleSoft, Inc.. All rights reserved.