MessageId
.Authentication
instances
for all the supported authentication methods.BatcherBuilder
of the producer.Consumer.receive()
, MessageListener.received(Consumer,
Message)
or the CompletableFuture
returned by
Consumer.receiveAsync()
completes.Producer.send(Object)
and Producer.sendAsync(Object)
methods, before
send the message to the brokers.Producer.send(T)
and Producer.sendAsync(T)
operations should block when the outgoing
message queue is full.PulsarClient
instancePulsarClient
instance.SchemaDefinition
instance.MessageRouter.choosePartition(Message, TopicMetadata)
instead.PulsarClient
instance.ProducerBuilder
.ReaderBuilder
.Producer
.ConsumerBuilder
is used to configure and create instances of Consumer
.ConsumerEventListener
for the consumer.Authentication
object by using
the plugin class name.Producer
instance.Reader
instance.Producer
instance in asynchronous mode.Reader
instance in asynchronous mode.ConsumerCryptoFailureAction
to specifyCryptoKeyReader
.CryptoKeyReader
.CryptoKeyReader
to decrypt the message payloads.KeyValue
pair.Schema
for the field value.GenericRecord
.GenericRecord
and bytes.EncryptionContext
contains encryption and compression information in it using which application can
decrypt consumed message with encrypted-payload.Schema
.HashingScheme
used to chose the partition on where to publish a particular message.Consumer
.ProducerInterceptor
to the producer.TypedMessageBuilder
from a config map, as an alternative compared
to call the individual builder methods.ProducerBuilder.maxPendingMessages(int)
), if the total exceeds the configured value.MessageListener
for the consumer
When a MessageListener
is set, application will receive messages through it.MessageRoutingMode
for a partitioned producer.Schema.BYTES
) for subscribing to
one or more topics.Schema.BYTES
.
Producer<String> producer = client.newProducer(Schema.STRING)
.topic("my-topic")
.create();
producer.send("test");
Schema.BYTES
) to read from the specified topic.Schema
) to read from the specified topic.GenericRecord
.SubscriptionType.Key_Shared
mode.Consumer.resume()
is called.ProducerBuilder
is used to configure and create instances of Producer
.Producer.getProducerName()
.ReaderBuilder
is used to configure and create instances of Reader
.ReaderListener
for the reader
When a ReaderListener
is set, application will receive messages through it.CompletableFuture
with received message.GenericRecord
.SchemaDefinition
.PulsarClientException.ProducerQueueIsFullError
See ProducerBuilder.maxPendingMessages(int)
to configure the producer queue size and
ProducerBuilder.blockIfQueueFull(boolean)
to change the blocking behavior.MessageId
assigned by the broker to the published message.ClientBuilder.serviceUrl(String)
), an application can pass a
ServiceUrlProvider
instance that dynamically provide a service URL.ReaderBuilder.startMessageId(MessageId)
This configuration option also applies for any cursor reset operation like Reader.seek(MessageId)
.Consumer
creation by subscribing to the topic.Consumer
creation by subscribing to the topic in asynchronous mode.SubscriptionInitialPosition
for the consumer.Copyright © 2017–2019 Apache Software Foundation. All rights reserved.