public class AcknowledgeablePubsubMessage extends Object
PubsubMessage wrapper that allows it to be acknowledged.
To acknowledge AcknowledgeablePubsubMessage in bulk, using a
PubSubOperations.ack(java.util.Collection)
is recommended. To do that, a user must first extract the ack IDs and group them by subscription name.
| Constructor and Description |
|---|
AcknowledgeablePubsubMessage(com.google.pubsub.v1.PubsubMessage message,
String ackId,
String subscriptionName,
com.google.cloud.pubsub.v1.stub.SubscriberStub subscriberStub) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack() |
String |
getAckId() |
com.google.pubsub.v1.PubsubMessage |
getPubsubMessage() |
String |
getSubscriptionName() |
void |
nack() |
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.