@NoImplement 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(Message result) |
String |
getDescription() |
Message |
getFirstReturnMessage() |
Throwable |
getLastFailure()
The most recent failure which prevented the context from validating the connection.
|
Map<Object,Object> |
getMetaInfo() |
NotificationDispatcher |
getNotificationFirer() |
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(Message[] returnMessages) |
static final String FAILED_RECEIVER
static final String FAILED_DISPATCHER
static final String FAILED_REQUESTER
Map<Object,Object> getMetaInfo()
Message[] getReturnMessages()
Message getFirstReturnMessage()
void setReturnMessages(Message[] returnMessages)
void addReturnMessage(Message result)
String getDescription()
NotificationDispatcher getNotificationFirer()
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 © 2018. All rights reserved.