Class: ZZQ::MonitorEvent
- Inherits:
-
Data
- Object
- Data
- ZZQ::MonitorEvent
- Defined in:
- lib/zzq/monitor_event.rb
Overview
A single event emitted by a Socket’s #monitor task. Event types cover both infrastructure lifecycle (:listening, :connected, :disconnected, :closed) and MQTT semantics (:session_resumed, :session_expired, :retained_updated, :publish_delivered, :will_published).
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, endpoint: nil, detail: nil) ⇒ MonitorEvent
constructor
A new instance of MonitorEvent.
Constructor Details
#initialize(type:, endpoint: nil, detail: nil) ⇒ MonitorEvent
Returns a new instance of MonitorEvent.
10 11 12 |
# File 'lib/zzq/monitor_event.rb', line 10 def initialize(type:, endpoint: nil, detail: nil) super end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail
9 10 11 |
# File 'lib/zzq/monitor_event.rb', line 9 def detail @detail end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint
9 10 11 |
# File 'lib/zzq/monitor_event.rb', line 9 def endpoint @endpoint end |
#type ⇒ Object (readonly)
Returns the value of attribute type
9 10 11 |
# File 'lib/zzq/monitor_event.rb', line 9 def type @type end |