Package zipkin2.collector.rabbitmq
Class RabbitMQCollector.Builder
- java.lang.Object
-
- zipkin2.collector.CollectorComponent.Builder
-
- zipkin2.collector.rabbitmq.RabbitMQCollector.Builder
-
- Enclosing class:
- RabbitMQCollector
public static final class RabbitMQCollector.Builder extends CollectorComponent.Builder
Configuration including defaults needed to consume spans from a RabbitMQ queue.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RabbitMQCollector.Builder
addresses(List<String> addresses)
RabbitMQCollector
build()
RabbitMQCollector.Builder
concurrency(int concurrency)
RabbitMQCollector.Builder
connectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory)
RabbitMQCollector.Builder
metrics(CollectorMetrics metrics)
RabbitMQCollector.Builder
queue(String queue)
Queue zipkin spans will be consumed from.RabbitMQCollector.Builder
sampler(CollectorSampler sampler)
RabbitMQCollector.Builder
storage(StorageComponent storage)
-
-
-
Method Detail
-
storage
public RabbitMQCollector.Builder storage(StorageComponent storage)
- Specified by:
storage
in classCollectorComponent.Builder
-
sampler
public RabbitMQCollector.Builder sampler(CollectorSampler sampler)
- Specified by:
sampler
in classCollectorComponent.Builder
-
metrics
public RabbitMQCollector.Builder metrics(CollectorMetrics metrics)
- Specified by:
metrics
in classCollectorComponent.Builder
-
addresses
public RabbitMQCollector.Builder addresses(List<String> addresses)
-
concurrency
public RabbitMQCollector.Builder concurrency(int concurrency)
-
connectionFactory
public RabbitMQCollector.Builder connectionFactory(com.rabbitmq.client.ConnectionFactory connectionFactory)
-
queue
public RabbitMQCollector.Builder queue(String queue)
Queue zipkin spans will be consumed from. Defaults to "zipkin-spans".
-
build
public RabbitMQCollector build()
- Specified by:
build
in classCollectorComponent.Builder
-
-