Class HttpSource.Builder<B extends HttpSource.Builder<B,S>,S extends HttpSource>

java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<S>
Type Parameters:
B - type of the builder
S - 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 Details

    • Builder

      protected Builder(Function<B,S> targetConstructor)
      Protected constructor for subclasses.
      Parameters:
      targetConstructor - The constructor for the concrete type to be created by this builder.
  • Method Details

    • setParser

      public B setParser(Parser<List<Record>,HttpRequest> value)
      Sets the parser to use to parse the data. Required. Cannot be null.
      Parameters:
      value - Value
      Returns:
      This builder
    • setPeriodicMetrics

      public final B setPeriodicMetrics(com.arpnetworking.metrics.incubator.PeriodicMetrics value)
      Sets the periodic metrics instance.
      Parameters:
      value - The periodic metrics.
      Returns:
      This instance of HttpSource.Builder