Class AckReplyConsumerImpl

java.lang.Object
com.google.cloud.pubsub.v1.AckReplyConsumerImpl
All Implemented Interfaces:
AckReplyConsumer

public class AckReplyConsumerImpl extends Object implements AckReplyConsumer
  • Constructor Summary

    Constructors
    Constructor
    Description
    AckReplyConsumerImpl(com.google.api.core.SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply> ackReplySettableApiFuture)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ack()
    Acknowledges that the message has been successfully processed.
    void
    Signals that the message has not been successfully processed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AckReplyConsumerImpl

      public AckReplyConsumerImpl(com.google.api.core.SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply> ackReplySettableApiFuture)
  • Method Details

    • ack

      public void ack()
      Description copied from interface: AckReplyConsumer
      Acknowledges that the message has been successfully processed. The service will not send the message again.
      Specified by:
      ack in interface AckReplyConsumer
    • nack

      public void nack()
      Description copied from interface: AckReplyConsumer
      Signals that the message has not been successfully processed. The service should resend the message.
      Specified by:
      nack in interface AckReplyConsumer