Class: ZZQ::Routing::QosTracker::PendingPublish

Inherits:
Struct
  • Object
show all
Defined in:
lib/zzq/routing/qos_tracker.rb

Overview

One outbound publication awaiting ack.

stage is one of:

* :waiting_puback  — QoS 1, awaiting PUBACK
* :waiting_pubrec  — QoS 2, awaiting PUBREC
* :waiting_pubcomp — QoS 2, PUBREC received, PUBREL sent

Instance Attribute Summary collapse

Instance Attribute Details

#packetObject

Returns the value of attribute packet

Returns:

  • (Object)

    the current value of packet



23
24
25
# File 'lib/zzq/routing/qos_tracker.rb', line 23

def packet
  @packet
end

#packet_idObject

Returns the value of attribute packet_id

Returns:

  • (Object)

    the current value of packet_id



23
24
25
# File 'lib/zzq/routing/qos_tracker.rb', line 23

def packet_id
  @packet_id
end

#promiseObject

Returns the value of attribute promise

Returns:

  • (Object)

    the current value of promise



23
24
25
# File 'lib/zzq/routing/qos_tracker.rb', line 23

def promise
  @promise
end

#stageObject

Returns the value of attribute stage

Returns:

  • (Object)

    the current value of stage



23
24
25
# File 'lib/zzq/routing/qos_tracker.rb', line 23

def stage
  @stage
end