Class AckReplyConsumerImpl (1.120.23)

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
NameDescription
ackReplySettableApiFutureSettableApiFuture<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.