Skip to content

Commit

Permalink
Add java docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenchickenlove committed Oct 12, 2024
1 parent 97f05be commit d219037
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,13 @@ private boolean rawByParameterIsType(Type parameterType, Type type) {
return parameterType instanceof ParameterizedType pType && pType.getRawType().equals(type);
}

/**
* Sets the retry callback for failures of both {@link CompletableFuture} and {@link Mono}.
* {@link MessagingMessageListenerAdapter#asyncFailure(Object, Acknowledgment, Consumer, Throwable, Message)}
* will invoke {@link MessagingMessageListenerAdapter#callbackForAsyncFailure} when
* {@link CompletableFuture} or {@link Mono} fails to complete.
* @param asyncRetryCallback the callback for async retry.
*/
public void setCallbackForAsyncFailure(BiConsumer<ConsumerRecord<K, V>, RuntimeException> asyncRetryCallback) {
this.callbackForAsyncFailure = asyncRetryCallback;
}
Expand Down

0 comments on commit d219037

Please sign in to comment.