Module: ASIR::Transport::Composite

Includes:
Delegation
Included in:
Broadcast, Fallback
Defined in:
lib/asir/transport/composite.rb

Overview

!SLIDE A Transport composed of other Transports.

Classes that mix this in should define #_send_message.

Instance Attribute Summary collapse

Attributes included from Delegation

#on_failed_message, #on_send_message_exception, #reraise_first_exception

Method Summary

Methods included from Delegation

#_handle_send_message_exception!, #_receive_result, #needs_message_identifier?, #needs_message_timestamp?

Instance Attribute Details

#continue_on_exceptionObject

If true, continue with other Transports when Transport#send_message raises an Exception.



14
15
16
# File 'lib/asir/transport/composite.rb', line 14

def continue_on_exception
  @continue_on_exception
end

#transportsObject

Enumerable of Transport objects.



12
13
14
# File 'lib/asir/transport/composite.rb', line 12

def transports
  @transports
end