Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
Public Attributes | List of all members
google::cloud::pubsub::PullResponse Struct Reference

The response for a blocking pull. More...

#include <google/cloud/pubsub/pull_response.h>

Public Attributes

pubsub::PullAckHandler handler
 The ack/nack handler associated with this message. More...
 
pubsub::Message message
 The message attributes and payload. More...
 

Detailed Description

The response for a blocking pull.

If the application invokes handler.nack() or allows handler to go out of scope, then the service will redeliver the message.

With exactly-once delivery subscriptions, the service will stop redelivering the message once the application invokes handler.ack() and the invocation succeeds. With best-efforts subscriptions, the service may redeliver the message, even after a successful handler.ack() invocation.

If handler is not an rvalue, you may need to use std::move(handler).ack() or std::move(handler).nack().

See also
https://cloud.google.com/pubsub/docs/exactly-once-delivery

Member Data Documentation

◆ handler

pubsub::PullAckHandler google::cloud::pubsub::PullResponse::handler

The ack/nack handler associated with this message.

◆ message

pubsub::Message google::cloud::pubsub::PullResponse::message

The message attributes and payload.