Class: Sumac::Connection
- Includes:
- QueuedStateMachine
- Defined in:
- lib/sumac/connection.rb
Instance Attribute Summary collapse
-
#call_dispatcher ⇒ Object
readonly
Returns the value of attribute call_dispatcher.
-
#call_processor ⇒ Object
readonly
Returns the value of attribute call_processor.
-
#closer ⇒ Object
readonly
Returns the value of attribute closer.
-
#handshake ⇒ Object
readonly
Returns the value of attribute handshake.
-
#local_entry ⇒ Object
readonly
Returns the value of attribute local_entry.
-
#local_references ⇒ Object
readonly
Returns the value of attribute local_references.
-
#messenger ⇒ Object
readonly
Returns the value of attribute messenger.
-
#messenger_adapter ⇒ Object
readonly
Returns the value of attribute messenger_adapter.
-
#mutex ⇒ Object
readonly
Returns the value of attribute mutex.
-
#remote_entry ⇒ Object
Returns the value of attribute remote_entry.
-
#remote_references ⇒ Object
readonly
Returns the value of attribute remote_references.
-
#scheduler ⇒ Object
readonly
Returns the value of attribute scheduler.
-
#shutdown ⇒ Object
readonly
Returns the value of attribute shutdown.
-
#sumac ⇒ Object
readonly
Returns the value of attribute sumac.
Instance Method Summary collapse
-
#initialize(sumac, duck_types:, entry:, messenger:, workers:) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(sumac, duck_types:, entry:, messenger:, workers:) ⇒ Connection
Returns a new instance of Connection.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/sumac/connection.rb', line 75 def initialize(sumac, duck_types: , entry: , messenger: , workers: ) super() @sumac = sumac @local_entry = entry @messenger_adapter = messenger @remote_entry = RemoteEntry.new @mutex = Mutex.new @messenger = Messenger.new(self) @call_dispatcher = CallDispatcher.new(self) @call_processor = CallProcessor.new(self) @handshake = Handshake.new(self) @shutdown = Shutdown.new(self) @local_references = LocalReferences.new(self) @remote_references = RemoteReferences.new(self) @scheduler = Scheduler.new(self, workers) @closer = Closer.new(self) end |
Instance Attribute Details
#call_dispatcher ⇒ Object (readonly)
Returns the value of attribute call_dispatcher.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def call_dispatcher @call_dispatcher end |
#call_processor ⇒ Object (readonly)
Returns the value of attribute call_processor.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def call_processor @call_processor end |
#closer ⇒ Object (readonly)
Returns the value of attribute closer.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def closer @closer end |
#handshake ⇒ Object (readonly)
Returns the value of attribute handshake.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def handshake @handshake end |
#local_entry ⇒ Object (readonly)
Returns the value of attribute local_entry.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def local_entry @local_entry end |
#local_references ⇒ Object (readonly)
Returns the value of attribute local_references.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def local_references @local_references end |
#messenger ⇒ Object (readonly)
Returns the value of attribute messenger.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def messenger @messenger end |
#messenger_adapter ⇒ Object (readonly)
Returns the value of attribute messenger_adapter.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def messenger_adapter @messenger_adapter end |
#mutex ⇒ Object (readonly)
Returns the value of attribute mutex.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def mutex @mutex end |
#remote_entry ⇒ Object
Returns the value of attribute remote_entry.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def remote_entry @remote_entry end |
#remote_references ⇒ Object (readonly)
Returns the value of attribute remote_references.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def remote_references @remote_references end |
#scheduler ⇒ Object (readonly)
Returns the value of attribute scheduler.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def scheduler @scheduler end |
#shutdown ⇒ Object (readonly)
Returns the value of attribute shutdown.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def shutdown @shutdown end |
#sumac ⇒ Object (readonly)
Returns the value of attribute sumac.
68 69 70 |
# File 'lib/sumac/connection.rb', line 68 def sumac @sumac end |