Class AckReplyConsumerImpl (1.133.1)

public class AckReplyConsumerImpl implements AckReplyConsumer

Inheritance

java.lang.Object > AckReplyConsumerImpl

Implements

AckReplyConsumer

Constructors

AckReplyConsumerImpl(SettableApiFuture<MessageDispatcher.AckReply> ackReplySettableApiFuture)

public AckReplyConsumerImpl(SettableApiFuture<MessageDispatcher.AckReply> ackReplySettableApiFuture)
Parameter
Name Description
ackReplySettableApiFuture SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply>

Methods

ack()

public void ack()

Acknowledges that the message has been successfully processed. The service will not send the message again.

nack()

public void nack()

Signals that the message has not been successfully processed. The service should resend the message.