public class AckReplyConsumerImpl implements AckReplyConsumerImplements
AckReplyConsumerConstructors
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.