接口的使用
org.apache.pulsar.client.api.Producer
-
使用Producer的程序包 程序包 说明 org.apache.pulsar.client.api Pulsar Client API.org.apache.pulsar.client.api.interceptor Pulsar interceptors. -
-
org.apache.pulsar.client.api中Producer的使用
返回Producer的org.apache.pulsar.client.api中的方法 修饰符和类型 方法 说明 Producer<T>ProducerBuilder. create()Finalize the creation of theProducerinstance.返回变量类型为Producer的类型的org.apache.pulsar.client.api中的方法 修饰符和类型 方法 说明 java.util.concurrent.CompletableFuture<Producer<T>>ProducerBuilder. createAsync()Finalize the creation of theProducerinstance in asynchronous mode.参数类型为Producer的org.apache.pulsar.client.api中的方法 修饰符和类型 方法 说明 Message<T>ProducerInterceptor. beforeSend(Producer<T> producer, Message<T> message)已过时。This is called fromsend(Object)andsendAsync(Object)methods, before send the message to the brokers.voidProducerInterceptor. onSendAcknowledgement(Producer<T> producer, Message<T> message, MessageId msgId, java.lang.Throwable exception)已过时。This method is called when the message sent to the broker has been acknowledged, or when sending the message fails. -
org.apache.pulsar.client.api.interceptor中Producer的使用
参数类型为Producer的org.apache.pulsar.client.api.interceptor中的方法 修饰符和类型 方法 说明 MessageProducerInterceptor. beforeSend(Producer producer, Message message)This is called fromsend(Object)andsendAsync(Object)methods, before send the message to the brokers.MessageProducerInterceptorWrapper. beforeSend(Producer producer, Message message)voidProducerInterceptor. onSendAcknowledgement(Producer producer, Message message, MessageId msgId, java.lang.Throwable exception)This method is called when the message sent to the broker has been acknowledged, or when sending the message fails.voidProducerInterceptorWrapper. onSendAcknowledgement(Producer producer, Message message, MessageId msgId, java.lang.Throwable exception)
-