Class: Phobos::Producer::ClassMethods::PublicAPI
- Inherits:
-
Object
- Object
- Phobos::Producer::ClassMethods::PublicAPI
- Defined in:
- lib/deimos/monkey_patches/phobos_producer.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#async_publish(topic, payload, key = nil, partition_key = nil) ⇒ Object
:nodoc:.
-
#publish(topic, payload, key = nil, partition_key = nil) ⇒ Object
:nodoc:.
Instance Method Details
#async_publish(topic, payload, key = nil, partition_key = nil) ⇒ Object
:nodoc:
31 32 33 34 |
# File 'lib/deimos/monkey_patches/phobos_producer.rb', line 31 def async_publish(topic, payload, key=nil, partition_key=nil) async_publish_list([{ topic: topic, payload: payload, key: key, partition_key: partition_key }]) end |
#publish(topic, payload, key = nil, partition_key = nil) ⇒ Object
:nodoc:
25 26 27 28 |
# File 'lib/deimos/monkey_patches/phobos_producer.rb', line 25 def publish(topic, payload, key=nil, partition_key=nil) publish_list([{ topic: topic, payload: payload, key: key, partition_key: partition_key }]) end |