| Package | Description |
|---|---|
| org.apache.pulsar.client.api |
Pulsar Client API.
|
| org.apache.pulsar.client.api.interceptor |
Pulsar interceptors.
|
| Modifier and Type | Method and Description |
|---|---|
Producer<T> |
ProducerBuilder.create()
Finalize the creation of the
Producer instance. |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Producer<T>> |
ProducerBuilder.createAsync()
Finalize the creation of the
Producer instance in asynchronous mode. |
| Modifier and Type | Method and Description |
|---|---|
Message<T> |
ProducerInterceptor.beforeSend(Producer<T> producer,
Message<T> message)
Deprecated.
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)
Deprecated.
This method is called when the message sent to the broker has been
acknowledged, or when sending the message fails.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
ProducerInterceptorWrapper.beforeSend(Producer producer,
Message message) |
Message |
ProducerInterceptor.beforeSend(Producer producer,
Message message)
This is called from
send(Object) and sendAsync(Object) methods, before
send the message to the brokers. |
void |
ProducerInterceptorWrapper.onSendAcknowledgement(Producer producer,
Message message,
MessageId msgId,
Throwable exception) |
void |
ProducerInterceptor.onSendAcknowledgement(Producer producer,
Message 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–2021 Apache Software Foundation. All rights reserved.