Class: Mammoth::Runtimes::ConcurrentAdapter
- Defined in:
- lib/mammoth/runtimes/concurrent_adapter.rb
Overview
Runtime adapter backed by Mammoth's existing cdc-concurrent wrapper.
Class Method Summary collapse
-
.adapter_type ⇒ String
Adapter type name.
-
.build(processor:, concurrency:, timeout:, preserve_order:) ⇒ Mammoth::ConcurrentDeliveryRuntime
Build a concurrent runtime adapter.
Methods inherited from Adapter
Constructor Details
This class inherits a constructor from Mammoth::Runtimes::Adapter
Class Method Details
.adapter_type ⇒ String
Returns adapter type name.
9 10 11 |
# File 'lib/mammoth/runtimes/concurrent_adapter.rb', line 9 def adapter_type "concurrent" end |
.build(processor:, concurrency:, timeout:, preserve_order:) ⇒ Mammoth::ConcurrentDeliveryRuntime
Build a concurrent runtime adapter.
20 21 22 23 24 25 26 27 |
# File 'lib/mammoth/runtimes/concurrent_adapter.rb', line 20 def build(processor:, concurrency:, timeout:, preserve_order:) ConcurrentDeliveryRuntime.new( processor: processor, concurrency: concurrency, timeout: timeout, preserve_order: preserve_order ) end |