Class HttpSource.Builder<B extends HttpSource.Builder<B,S>,S extends HttpSource>
java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<S>
com.arpnetworking.metrics.common.sources.BaseSource.Builder<B,S>
com.arpnetworking.metrics.common.sources.ActorSource.Builder<B,S>
com.arpnetworking.metrics.common.sources.HttpSource.Builder<B,S>
- Type Parameters:
B
- type of the builderS
- type of the object to be built
- All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<S>
- Direct Known Subclasses:
ClientHttpSourceV1.Builder
,ClientHttpSourceV2.Builder
,ClientHttpSourceV3.Builder
,CollectdHttpSourceV1.Builder
,PrometheusHttpSource.Builder
- Enclosing class:
- HttpSource
public abstract static class HttpSource.Builder<B extends HttpSource.Builder<B,S>,S extends HttpSource>
extends ActorSource.Builder<B,S>
HttpSource
BaseSource.Builder
implementation.- Author:
- Brandon Arp (brandon dot arp at smartsheet dot com)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetParser
(Parser<List<Record>, HttpRequest> value) Sets the parser to use to parse the data.final B
setPeriodicMetrics
(com.arpnetworking.metrics.incubator.PeriodicMetrics value) Sets the periodic metrics instance.Methods inherited from class com.arpnetworking.metrics.common.sources.ActorSource.Builder
setActorName, setActorSystem, setPoolSize
Methods inherited from class com.arpnetworking.metrics.common.sources.BaseSource.Builder
self, setName
Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
build, clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
Protected constructor for subclasses.- Parameters:
targetConstructor
- The constructor for the concrete type to be created by this builder.
-
-
Method Details
-
setParser
Sets the parser to use to parse the data. Required. Cannot be null.- Parameters:
value
- Value- Returns:
- This builder
-
setPeriodicMetrics
Sets the periodic metrics instance.- Parameters:
value
- The periodic metrics.- Returns:
- This instance of
HttpSource.Builder
-