Package brave.http
Interface HttpTracingCustomizer
-
public interface HttpTracingCustomizerThis allows configuration plugins to collaborate on building an instance ofHttpTracing.For example, a customizer can setup
http parserswithout a reference to thetracing component.This also allows one object to customize both
Tracing, viaTracingCustomizer, and the http layerHttpTracing, by implementing both customizer interfaces.Integration examples
In practice, a dependency injection tool applies a collection of these instances prior to
building the tracing instance. For example, an injectedList<HttpTracingCustomizer>parameter to a provider ofHttpTracing.Here are some examples, in alphabetical order:
Note: This type is safe to implement as a lambda, or use as a method reference as it is effectively a
FunctionalInterface. It isn't annotated as such because the project has a minimum Java language level 6.- Since:
- 5.7
- See Also:
TracingCustomizer
-
-
Field Summary
Fields Modifier and Type Field Description static HttpTracingCustomizerNOOPUse to avoid comparing against null references
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcustomize(HttpTracing.Builder builder)
-
-
-
Field Detail
-
NOOP
static final HttpTracingCustomizer NOOP
Use to avoid comparing against null references
-
-
Method Detail
-
customize
void customize(HttpTracing.Builder builder)
-
-