Skip to content

Instantly share code, notes, and snippets.

@danielkec
Created March 20, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkec/b6db4d21968c25dc061fcfaeb5942e7a to your computer and use it in GitHub Desktop.
Save danielkec/b6db4d21968c25dc061fcfaeb5942e7a to your computer and use it in GitHub Desktop.
// Create a message
Message<String> message = Message.of("payload!", () -> {
System.out.println("Executed when acked!");
return CompletableFuture.completedFuture(null);
});
// Acknowledge
message.ack();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment