Close the Producer and releases resources allocated.
Close the Producer and releases resources allocated.
No more writes will be accepted from this producer. Waits until all pending write request are persisted. In case of errors, pending writes will not be retried.
Close the Producer, releases resources allocated, and returns an effect that is completed when the close operation has completed.
Close the Producer, releases resources allocated, and returns an effect that is completed when the close operation has completed.
No more writes will be accepted from this producer. Waits until all pending write request are persisted. In case of errors, pending writes will not be retried.
Get the last sequence id that was published by this producer.
Get the last sequence id that was published by this producer.
This represented either the automatically assigned or custom sequence id that was published and acknowledged by the broker.
After recreating a producer with the same producer name, this will return the last message that was published in the previous producer session, or -1 if there no message was ever published.
Returns the ProducerName which could have been specified by the client or assigned by the system.
Returns the ProducerName which could have been specified by the client or assigned by the system.
Sends a ProducerMessage of type T.
Sends a ProducerMessage of type T. This method can be used when you want to specify properties on a message such as the event time, key and so on.
This call will block until it is successfully acknowledged by the Pulsar broker.
Sends a message of type T.
Sends a message of type T. The message sent will have no key.
This method can be used when you have no need to set the other properties of a message, such as the event time, key, headers and so on. The producer will generate an appropriate Pulsar ProducerMessage with this t set as the value.
This call will block until it is successfully acknowledged by the Pulsar broker.
Asynchronously sends a ProducerMessage of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.
Asynchronously sends a ProducerMessage of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.
This method can be used when you want to specify properties on a message such as the event time, key and so on.
Asynchronously sends a message of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.
Asynchronously sends a message of type T, returning an effect which will be completed with the MessageId once the message is acknowledged by the Pulsar broker.
This method can be used when you have no need to set the other properties of a message, such as the event time, key, headers and so on. The producer will generate an appropriate Pulsar ProducerMessage with this t set as the value.
Returns the Topic that a producer is publishing to.
Returns the Topic that a producer is publishing to.