Class PubSubMessage

    • Constructor Detail

      • PubSubMessage

        public PubSubMessage​(com.google.pubsub.v1.PubsubMessage message)
      • PubSubMessage

        public PubSubMessage​(com.google.pubsub.v1.PubsubMessage message,
                             com.google.cloud.pubsub.v1.AckReplyConsumer ackReplyConsumer)
    • Method Detail

      • getMessage

        public com.google.pubsub.v1.PubsubMessage getMessage()
      • ack

        public CompletionStage<Void> ack()
        Description copied from interface: Message
        Acknowledge this message.
        Specified by:
        ack in interface Message<String>
        Returns:
        a completion stage completed when the message is acknowledged. If the acknowledgement fails, the completion stage propagates the failure.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object