|
||||||||||
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 java.lang.String |
FAILED_DISPATCHER
|
static java.lang.String |
FAILED_RECEIVER
|
static java.lang.String |
FAILED_REQUESTER
|
Method Summary | |
---|---|
void |
addReturnMessage(MuleMessage result)
|
java.lang.String |
getDescription()
|
MuleMessage |
getFirstReturnMessage()
|
java.lang.Throwable |
getLastFailure()
The most recent failure which prevented the context from validating the connection. |
java.util.Map<java.lang.Object,java.lang.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(java.lang.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 java.lang.String FAILED_RECEIVER
static final java.lang.String FAILED_DISPATCHER
static final java.lang.String FAILED_REQUESTER
Method Detail |
---|
java.util.Map<java.lang.Object,java.lang.Object> getMetaInfo()
MuleMessage[] getReturnMessages()
MuleMessage getFirstReturnMessage()
void setReturnMessages(MuleMessage[] returnMessages)
void addReturnMessage(MuleMessage result)
java.lang.String getDescription()
MuleContext getMuleContext()
java.lang.Throwable getLastFailure()
isOk()
should be consulted first.
void setOk()
void setFailed(java.lang.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 |