Class Impl (2.34.0-rc)

Allow applications to mock an AckHandler.

Functions

virtual ack()

The implementation for AckHandler::ack()

Returns
Type Description
void

virtual nack()

The implementation for AckHandler::nack()

Returns
Type Description
void

virtual delivery_attempt() const

The implementation for AckHandler::delivery_attempt()

Returns
Type Description
std::int32_t

virtual ack_id()

Returns the ack id for the handler.

There is no corresponding public interface to access the ack id in AckHandler. This is for internal use only.

Returns
Type Description
std::string

virtual subscription() const

Returns the subscription for the handler.

There is no corresponding public interface to access the subscription id in AckHandler. This is for internal use only.

Returns
Type Description
pubsub::Subscription