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 Type
    Method
    Description
    ack()
    Acknowledge (ack) the message asynchronously.
    com.google.pubsub.v1.ProjectSubscriptionName
    Accessor for the project subscription name of the Pub/Sub message.
    com.google.pubsub.v1.PubsubMessage
    Accessor for the wrapped PubsubMessage.
    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 wrapped PubsubMessage.
      Returns:
      the wrapped Pub/Sub message
    • ack

      Acknowledge (ack) the message asynchronously.
      Returns:
      CompletableFuture<Void>}
    • nack

      Negatatively achnowledge (nack) the message asynchronously.
      Returns:
      CompletableFuture<Void>}