public static class MetricsOptions.NoOpMetricsSink extends java.lang.Object implements DefaultValueFactory<java.lang.Class<? extends MetricsSink>>
DefaultValueFactory
that obtains the class of the NoOpMetricsSink
if it
exists on the classpath, and throws an exception otherwise.
As the NoOpMetricsSink
is in an independent module, it cannot be directly referenced
as the Default
. However, it should still be used if available.
Constructor and Description |
---|
NoOpMetricsSink() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends MetricsSink> |
create(PipelineOptions options)
Creates a default value for a getter marked with
Default.InstanceFactory . |
public java.lang.Class<? extends MetricsSink> create(PipelineOptions options)
DefaultValueFactory
Default.InstanceFactory
.create
in interface DefaultValueFactory<java.lang.Class<? extends MetricsSink>>
options
- The current pipeline options.