Sha256: cc74c2f194be90c82f5d9da2d3879f80753f343c74ad4455780a47c360f88bf3
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
#ifndef __PULSAR_RUBY_CLIENT_PRODUCER_HPP #define __PULSAR_RUBY_CLIENT_PRODUCER_HPP #include "rice/Module.hpp" #include "rice/Data_Object.hpp" #include <pulsar/Client.h> #include "message.hpp" namespace pulsar_rb { class Producer { public: pulsar::Producer _producer; Producer() {}; Producer(const pulsar::Producer& producer) : _producer(producer) {} void send(const Message& message); typedef Rice::Data_Object<Producer> ptr; }; // direct typedef instead of wrapping because implementations don't need any // wrapping. but still re-namespaced for consistency typedef pulsar::ProducerConfiguration ProducerConfiguration; }; void bind_producer(Rice::Module& module); #endif
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pulsar-client-2.4.1.pre.beta.4 | ext/bindings/producer.hpp |
pulsar-client-2.4.1.pre.beta.2 | ext/bindings/producer.hpp |
pulsar-client-2.4.1.pre.beta.1 | ext/bindings/producer.hpp |