import org.apache.catalina.tribes.Member;
/**
* Extension to the {@link RpcCallback} interface. Allows a RPC messenger to get a confirmation if the reply
- * was sent successfully to the original sender.
+ * was sent successfully to the original sender.
* @author fhanik
*
*/
public interface ExtendedRpcCallback extends RpcCallback {
/**
- *
+ * The reply failed.
* @param request - the original message that requested the reply
* @param response - the reply message to the original message
* @param sender - the sender requested that reply
* @param reason - the reason the reply failed
- * @return true if the callback would like to reattempt the reply, false otherwise
*/
- public boolean replyFailed(Serializable request, Serializable response, Member sender, Exception reason);
+ public void replyFailed(Serializable request, Serializable response, Member sender, Exception reason);
/**
- *
+ * The reply succeeded
* @param request - the original message that requested the reply
* @param response - the reply message to the original message
* @param sender - the sender requested that reply
finished = true;
}catch ( Exception x ) {
if (excallback != null && !asyncReply) {
- finished = !excallback.replyFailed(rmsg.message, reply, sender, x);
+ excallback.replyFailed(rmsg.message, reply, sender, x);
} else {
- finished = true;
log.error("Unable to send back reply in RpcChannel.",x);
}
}