Class: RSMP::StatusResponseCollector

Inherits:
StatusUpdateOrResponseCollector show all
Defined in:
lib/rsmp/collect/status_response_collector.rb

Overview

Class for waiting for specific status responses

Instance Attribute Summary

Attributes inherited from StateCollector

#queries

Attributes inherited from Collector

#condition, #error, #messages, #status, #task

Instance Method Summary collapse

Methods inherited from StatusUpdateOrResponseCollector

#build_query, #get_items

Methods inherited from StateCollector

#build_query, #done?, #messages, #perform_match, #progress, #query_result, #query_status, #reached, #summary

Methods inherited from Collector

#cancel, #cancelled?, #collect, #collect!, #collecting?, #complete, #describe_progress, #do_stop, #done?, #ingoing?, #inspect, #keep, #notify, #notify_disconnect, #notify_error, #notify_schema_error, #ok?, #outgoing?, #perform_match, #ready?, #reject_not_ack, #reset, #start, #timeout?, #type_match?, #use_task, #wait, #wait!

Methods inherited from Listener

#change_notifier, #listen, #notify, #notify_error

Methods included from Inspect

#inspect, #inspector

Constructor Details

#initialize(proxy, want, options = {}) ⇒ StatusResponseCollector

Returns a new instance of StatusResponseCollector.



4
5
6
7
8
9
# File 'lib/rsmp/collect/status_response_collector.rb', line 4

def initialize proxy, want, options={}
  super proxy, want, options.merge(
    type: ['StatusResponse','MessageNotAck'],
    title: 'status response'
  )
end