Class: OMQ::QoS::DeadLetter

Inherits:
Data
  • Object
show all
Defined in:
lib/omq/qos.rb

Overview

Data outcome pushed through #send's Promise when a message cannot be delivered under the requested guarantee.

Instance Attribute Summary collapse

Instance Attribute Details

#errorNackInfo? (readonly)

Returns NACK details at QoS 3; nil at QoS 2.

Returns:

  • (NackInfo, nil)

    NACK details at QoS 3; nil at QoS 2



77
# File 'lib/omq/qos.rb', line 77

DeadLetter = Data.define(:parts, :reason, :peer_info, :error)

#partsArray<String> (readonly)

Returns the original message frames.

Returns:

  • (Array<String>)

    the original message frames



77
# File 'lib/omq/qos.rb', line 77

DeadLetter = Data.define(:parts, :reason, :peer_info, :error)

#peer_infoProtocol::ZMTP::PeerInfo? (readonly)

Returns peer it was pinned to, if any.

Returns:

  • (Protocol::ZMTP::PeerInfo, nil)

    peer it was pinned to, if any



77
# File 'lib/omq/qos.rb', line 77

DeadLetter = Data.define(:parts, :reason, :peer_info, :error)

#reasonSymbol (readonly)

Returns :peer_timeout, :terminal_nack, :retry_exhausted, :socket_closed.

Returns:

  • (Symbol)

    :peer_timeout, :terminal_nack, :retry_exhausted, :socket_closed



77
# File 'lib/omq/qos.rb', line 77

DeadLetter = Data.define(:parts, :reason, :peer_info, :error)