struct
Crabbit::Confirmation
- Crabbit::Confirmation
- Struct
- Value
- Object
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.crConstructors
Instance Method Summary
- #clone
- #code : ResponseCode | Nil
- #confirmed : Bool
- #copy_with(publishing_id _publishing_id = @publishing_id, confirmed _confirmed = @confirmed, code _code = @code, error _error = @error)
- #error : Exception | Nil
- #publishing_id : UInt64
Constructor Detail
def self.new(publishing_id : UInt64, confirmed : Bool, code : ResponseCode | Nil = nil, error : Exception | Nil = nil)
#
Instance Method Detail
def copy_with(publishing_id _publishing_id = @publishing_id, confirmed _confirmed = @confirmed, code _code = @code, error _error = @error)
#