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
Constructors Constructor Description AckReplyConsumerWithResponseImpl(com.google.api.core.SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply> ackReplySettableApiFuture, com.google.api.core.SettableApiFuture<AckResponse> messageFuture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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 Detail
-
AckReplyConsumerWithResponseImpl
public AckReplyConsumerWithResponseImpl(com.google.api.core.SettableApiFuture<com.google.cloud.pubsub.v1.MessageDispatcher.AckReply> ackReplySettableApiFuture, com.google.api.core.SettableApiFuture<AckResponse> messageFuture)
-
-
Method Detail
-
ack
public com.google.api.core.ApiFuture<AckResponse> 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
public com.google.api.core.ApiFuture<AckResponse> 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
-
-