public MessageBusParams setRetryPolicy(RetryPolicy retryPolicy) {
        this.retryPolicy = retryPolicy;
        return this;
    }
Sets the retry policy for the resender.

@param retryPolicy The policy to set.
@return This, to allow chaining.
messagebus/src/main/java/com/yahoo/messagebus/MessageBusParams.java