Cloud Pub/Sub API - Class Google::Cloud::PubSub::AcknowledgeResult (v2.14.0)

Reference documentation and code samples for the Cloud Pub/Sub API class Google::Cloud::PubSub::AcknowledgeResult.

The result of a ack/nack/modack on messages.

When the operation was successful the result will be marked #succeeded?. Otherwise, the result will be marked #failed? and the error raised will be availabe on #error.

Inherits

  • Object

Methods

#error

def error() -> Google::Cloud::Error
Returns
  • (Google::Cloud::Error) — Error object of ack/modack operation

#failed?

def failed?() -> Boolean
Returns
  • (Boolean) — Whether the operation failed.

#status

def status() -> Numeric
Returns
  • (Numeric) — Status of the ack/modack operation.

#succeeded?

def succeeded?() -> Boolean
Returns
  • (Boolean) — Whether the operation was successful.

Constants

SUCCESS

value: 1
The constants below represents the status of ack/modack operations. Indicates successful ack/modack

PERMISSION_DENIED

value: 2
Indicates occurence of permenant permission denied error

FAILED_PRECONDITION

value: 3
Indicates occurence of permenant failed precondition error

INVALID_ACK_ID

value: 4
Indicates occurence of permenant permission denied error

OTHER

value: 5
Indicates occurence of permenant uncatogorised error