Package zipkin2.collector.pulsar
Class PulsarCollector.Builder
java.lang.Object
zipkin2.collector.CollectorComponent.Builder
zipkin2.collector.pulsar.PulsarCollector.Builder
- Enclosing class:
- PulsarCollector
Configuration including defaults needed to consume spans from a Pulsar topic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()clientProps(Map<String, Object> clientPropsMap) Any properties set here will override the previous Pulsar client configuration.concurrency(Integer concurrency) Count of concurrent message consumers on the topic.consumerProps(Map<String, Object> consumerPropsMap) Any properties set here will override the previous Pulsar consumer configuration.metrics(CollectorMetrics metrics) sampler(CollectorSampler sampler) serviceUrl(String serviceUrl) The service URL for the Pulsar client ex. pulsar://my-broker:6650.storage(StorageComponent storage) subscriptionName(String subscriptionName) Specify the subscription name for this consumer.Queue zipkin spans will be consumed from.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storage
- Specified by:
storagein classCollectorComponent.Builder
-
metrics
- Specified by:
metricsin classCollectorComponent.Builder
-
sampler
- Specified by:
samplerin classCollectorComponent.Builder
-
build
- Specified by:
buildin classCollectorComponent.Builder
-
concurrency
Count of concurrent message consumers on the topic. Defaults to 1. -
topic
Queue zipkin spans will be consumed from. Defaults to "zipkin". -
serviceUrl
The service URL for the Pulsar client ex. pulsar://my-broker:6650. No default. -
subscriptionName
Specify the subscription name for this consumer. No default. -
clientProps
Any properties set here will override the previous Pulsar client configuration.- Parameters:
clientPropsMap- Map<String, Object>- Returns:
- Builder
- See Also:
-
ClientBuilder.loadConf(Map)
-
consumerProps
Any properties set here will override the previous Pulsar consumer configuration.- Parameters:
consumerPropsMap- Map<String, Object>- Returns:
- Builder
- See Also:
-
ConsumerBuilder.loadConf(Map)
-