| 程序包 | 说明 |
|---|---|
| org.apache.pulsar.client.api |
| 限定符和类型 | 方法和说明 |
|---|---|
Producer<T> |
ProducerBuilder.create()
Finalize the creation of the
Producer instance. |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Producer<T>> |
ProducerBuilder.createAsync()
Finalize the creation of the
Producer instance in asynchronous mode. |
| 限定符和类型 | 方法和说明 |
|---|---|
Message<T> |
ProducerInterceptor.beforeSend(Producer<T> producer,
Message<T> message)
This is called from
send(Object) and sendAsync(Object) methods, before
send the message to the brokers. |
void |
ProducerInterceptor.onSendAcknowledgement(Producer<T> producer,
Message<T> message,
MessageId msgId,
Throwable exception)
This method is called when the message sent to the broker has been
acknowledged, or when sending the message fails.
|
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.