Package com.google.cloud.pubsub.v1
Class AckReplyConsumerWithResponseImpl
java.lang.Object
com.google.cloud.pubsub.v1.AckReplyConsumerWithResponseImpl
- All Implemented Interfaces:
AckReplyConsumerWithResponse
public class AckReplyConsumerWithResponseImpl
extends Object
implements AckReplyConsumerWithResponse
-
Constructor Summary
ConstructorDescriptionAckReplyConsumerWithResponseImpl
(com.google.api.core.SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply> ackReplySettableApiFuture, com.google.api.core.SettableApiFuture<AckResponse> messageFuture) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.core.ApiFuture<AckResponse>
ack()
Acknowledges that the message has been successfully processed.com.google.api.core.ApiFuture<AckResponse>
nack()
Signals that the message has not been successfully processed.
-
Constructor Details
-
AckReplyConsumerWithResponseImpl
public AckReplyConsumerWithResponseImpl(com.google.api.core.SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply> ackReplySettableApiFuture, com.google.api.core.SettableApiFuture<AckResponse> messageFuture)
-
-
Method Details
-
ack
Description copied from interface:AckReplyConsumerWithResponse
Acknowledges that the message has been successfully processed. The service will not send the message again.A future representing the server response is returned
- Specified by:
ack
in interfaceAckReplyConsumerWithResponse
-
nack
Description copied from interface:AckReplyConsumerWithResponse
Signals that the message has not been successfully processed. The service should resend the message.A future representing the server response is returned
- Specified by:
nack
in interfaceAckReplyConsumerWithResponse
-