public interface AcknowledgeablePubsubMessage extends BasicAcknowledgeablePubsubMessage
BasicAcknowledgeablePubsubMessage that exposes ack ID and subscription
name of the message. It also allows modification of the ack deadline and acknowledgement of
multiple messages at once using PubSubSubscriberOperations.ack(java.util.Collection).| Modifier and Type | Method and Description |
|---|---|
String |
getAckId()
Accessor for the ack ID of the Pub/Sub message.
|
org.springframework.util.concurrent.ListenableFuture<Void> |
modifyAckDeadline(int ackDeadlineSeconds)
Modify the ack deadline of the message.
|
ack, getProjectSubscriptionName, getPubsubMessage, nackString getAckId()
org.springframework.util.concurrent.ListenableFuture<Void> modifyAckDeadline(int ackDeadlineSeconds)
ackDeadlineSeconds - the new ack deadline in seconds. A deadline of 0 effectively nacks
the message.ListenableFuture<Void>Copyright © 2023. All rights reserved.