Package com.google.cloud.pubsub.v1
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidack()Acknowledges that the message has been successfully processed.voidnack()Signals that the message has not been successfully processed.
-
-
-
Method Detail
-
ack
public void ack()
Description copied from interface:AckReplyConsumerAcknowledges that the message has been successfully processed. The service will not send the message again.- Specified by:
ackin interfaceAckReplyConsumer
-
nack
public void nack()
Description copied from interface:AckReplyConsumerSignals that the message has not been successfully processed. The service should resend the message.- Specified by:
nackin interfaceAckReplyConsumer
-
-