public class AcknowledgeablePubsubMessage extends Object
PubsubMessage wrapper that allows it to be acknowledged.
To acknowledge AcknowledgeablePubsubMessage in bulk, using a
PubSubAcknowledger 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,
PubSubAcknowledger acknowledger) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack() |
String |
getAckId() |
com.google.pubsub.v1.PubsubMessage |
getMessage() |
String |
getSubscriptionName() |
void |
nack() |
public AcknowledgeablePubsubMessage(com.google.pubsub.v1.PubsubMessage message,
String ackId,
String subscriptionName,
PubSubAcknowledger acknowledger)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.