@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Around @Introduction @Type(value=PulsarProducerAdvice.class) public @interface PulsarProducer
Modifier and Type | Optional Element and Description |
---|---|
boolean |
autoUpdatePartition |
boolean |
batching |
int |
batchingMaxBytes
Default 128KB.
|
int |
batchingMaxMessages |
boolean |
blockQueue |
boolean |
chunking
If this is enabled batching should be disabled.
|
org.apache.pulsar.client.api.CompressionType |
compressionType |
String |
encryptionKey |
org.apache.pulsar.client.api.HashingScheme |
hashingScheme |
long |
initialSequenceId |
org.apache.pulsar.common.schema.KeyValueEncodingType |
keyEncoding
If no
MessageKey annotated method argument is detected this attribute is ignored and message is treated
as simple - without a key. |
MessageSchema |
keySchema |
org.apache.pulsar.client.api.MessageRoutingMode |
messageRoutingMode |
boolean |
multiSchema |
String |
producerName |
MessageSchema |
schema |
boolean |
sendBefore
Defaults to false.
|
@Pattern(regexp="((non-)?persistent://)?((\\w+(-|\\w+)*\\w/)|(\\$\\{tenant\\}))(\\w+(-|\\w+)*\\w/)\\w+(-|\\w+)*\\w") String |
topic |
String |
value |
public abstract String producerName
@AliasFor(member="value") @Pattern(regexp="((non-)?persistent://)?((\\w+(-|\\w+)*\\w/)|(\\$\\{tenant\\}))(\\w+(-|\\w+)*\\w/)\\w+(-|\\w+)*\\w") public abstract @Pattern(regexp="((non-)?persistent://)?((\\w+(-|\\w+)*\\w/)|(\\$\\{tenant\\}))(\\w+(-|\\w+)*\\w/)\\w+(-|\\w+)*\\w") String topic
public abstract MessageSchema schema
public abstract MessageSchema keySchema
public abstract org.apache.pulsar.common.schema.KeyValueEncodingType keyEncoding
MessageKey
annotated method argument is detected this attribute is ignored and message is treated
as simple - without a key.public abstract org.apache.pulsar.client.api.CompressionType compressionType
public abstract org.apache.pulsar.client.api.MessageRoutingMode messageRoutingMode
public abstract boolean multiSchema
public abstract boolean autoUpdatePartition
public abstract boolean blockQueue
public abstract boolean batching
public abstract int batchingMaxMessages
public abstract int batchingMaxBytes
public abstract boolean chunking
public abstract String encryptionKey
public abstract long initialSequenceId