| Package | Description |
|---|---|
| org.apache.pulsar.client.api |
Pulsar Client API.
|
| Modifier and Type | Method and Description |
|---|---|
TypedMessageBuilder<T> |
TypedMessageBuilder.deliverAfter(long delay,
TimeUnit unit)
Request to deliver the message only after the specified relative delay.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.deliverAt(long timestamp)
Deliver the message only at or after the specified absolute timestamp.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.disableReplication()
Disable geo-replication for this message.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.eventTime(long timestamp)
Set the event time for a given message.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.key(String key)
Sets the key of the message for routing policy.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.keyBytes(byte[] key)
Sets the bytes of the key of the message for routing policy.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.loadConf(Map<String,Object> config)
Configure the
TypedMessageBuilder from a config map, as an alternative compared
to call the individual builder methods. |
TypedMessageBuilder<T> |
Producer.newMessage()
Create a new message builder.
|
<V> TypedMessageBuilder<V> |
Producer.newMessage(Schema<V> schema)
Create a new message builder with schema, not required same parameterized type with the producer.
|
TypedMessageBuilder<T> |
Producer.newMessage(Transaction txn)
Create a new message builder with transaction.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.orderingKey(byte[] orderingKey)
Sets the ordering key of the message for message dispatch in
SubscriptionType.Key_Shared mode. |
TypedMessageBuilder<T> |
TypedMessageBuilder.properties(Map<String,String> properties)
Add all the properties in the provided map.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.property(String name,
String value)
Sets a new property on a message.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.replicationClusters(List<String> clusters)
Override the geo-replication clusters for this message.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.sequenceId(long sequenceId)
Specify a custom sequence id for the message being published.
|
TypedMessageBuilder<T> |
TypedMessageBuilder.value(T value)
Set a domain object on the message.
|
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.