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()
AckReplyConsumerWithResponse
A future representing the server response is returned
ack
in interface AckReplyConsumerWithResponse
public com.google.api.core.ApiFuture<AckResponse> nack()
AckReplyConsumerWithResponse
A future representing the server response is returned
nack
in interface AckReplyConsumerWithResponse
Copyright © 2023 Google LLC. All rights reserved.