|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RetryContext
The RetryContext is used to store any data which carries over from attempt to attempt such as response messages.
Field Summary | |
---|---|
static String |
FAILED_DISPATCHER
|
static String |
FAILED_RECEIVER
|
static String |
FAILED_REQUESTER
|
Method Summary | |
---|---|
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)
|
Field Detail |
---|
static final String FAILED_RECEIVER
static final String FAILED_DISPATCHER
static final String FAILED_REQUESTER
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |