public class AckReplyConsumerWithResponseImpl extends Object implements AckReplyConsumerWithResponse
| Constructor and Description |
|---|
AckReplyConsumerWithResponseImpl(com.google.api.core.SettableApiFuture<MessageDispatcher.AckReply> ackReplySettableApiFuture,
com.google.api.core.SettableApiFuture<AckResponse> messageFuture) |
| Modifier and Type | Method and 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.
|
public AckReplyConsumerWithResponseImpl(com.google.api.core.SettableApiFuture<MessageDispatcher.AckReply> ackReplySettableApiFuture, com.google.api.core.SettableApiFuture<AckResponse> messageFuture)
public com.google.api.core.ApiFuture<AckResponse> ack()
AckReplyConsumerWithResponseA future representing the server response is returned
ack in interface AckReplyConsumerWithResponsepublic com.google.api.core.ApiFuture<AckResponse> nack()
AckReplyConsumerWithResponseA future representing the server response is returned
nack in interface AckReplyConsumerWithResponseCopyright © 2022 Google LLC. All rights reserved.