Interface BasicAcknowledgeablePubsubMessage
- All Known Subinterfaces:
AcknowledgeablePubsubMessage,ConvertedAcknowledgeablePubsubMessage<T>,ConvertedBasicAcknowledgeablePubsubMessage<T>
public interface BasicAcknowledgeablePubsubMessage
A
PubsubMessage wrapper that allows it to be acknowledged.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionack()Acknowledge (ack) the message asynchronously.com.google.pubsub.v1.ProjectSubscriptionNameAccessor for the project subscription name of the Pub/Sub message.com.google.pubsub.v1.PubsubMessageAccessor for the wrappedPubsubMessage.nack()Negatatively achnowledge (nack) the message asynchronously.
-
Method Details
-
getProjectSubscriptionName
com.google.pubsub.v1.ProjectSubscriptionName getProjectSubscriptionName()Accessor for the project subscription name of the Pub/Sub message.- Returns:
- the project subscription name
-
getPubsubMessage
com.google.pubsub.v1.PubsubMessage getPubsubMessage()Accessor for the wrappedPubsubMessage.- Returns:
- the wrapped Pub/Sub message
-
ack
CompletableFuture<Void> ack()Acknowledge (ack) the message asynchronously.- Returns:
CompletableFuture<Void>}
-
nack
CompletableFuture<Void> nack()Negatatively achnowledge (nack) the message asynchronously.- Returns:
CompletableFuture<Void>}
-