struct Crabbit::Confirmation

Overview

Final outcome of one logical publish.

#confirmed is true only for a positive broker confirmation. On failure, #code may contain the broker response and #error contains the associated exception. A confirmation resolves exactly once.

Defined in:

crabbit/producer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(publishing_id : UInt64, confirmed : Bool, code : ResponseCode | Nil = nil, error : Exception | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def code : ResponseCode | Nil #

def confirmed : Bool #

def copy_with(publishing_id _publishing_id = @publishing_id, confirmed _confirmed = @confirmed, code _code = @code, error _error = @error) #

[View source]
def error : Exception | Nil #

def publishing_id : UInt64 #