Class Impl (2.29.0)

Allow applications to mock an ExactlyOnceAckHandler.

Functions

virtual ack()

The implementation for ExactlyOnceAckHandler::ack()

Returns
Type Description
future< Status >

virtual nack()

The implementation for ExactlyOnceAckHandler::nack()

Returns
Type Description
future< Status >

virtual delivery_attempt() const

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 ExactlyOnceAckHandler. 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 ExactlyOnceAckHandler. This is for internal use only.

Returns
Type Description
pubsub::Subscription