class documentation
The Pulsar message producer, used to publish messages on a topic.
Method | __init__ |
Create the producer. Users should not call this constructor directly. Instead, create the producer via Client.create_producer . |
Async Method | close |
Close the producer. |
Async Method | send |
Send a message asynchronously. |
Instance Variable | _producer |
Undocumented |
Create the producer.
Users should not call this constructor directly. Instead, create the
producer via Client.create_producer
.
Parameters | |
producer:_pulsar.Producer | The underlying Producer object from the C extension. |
Send a message asynchronously.
Parameters | |
content:bytes | The message payload |
Returns | |
pulsar.MessageId | The message id that represents the persisted position of the message. |
Raises | |
PulsarException |