public class FnWithMetricsWrapper
extends java.lang.Object
Supplier function call with BEAM metrics.| Modifier and Type | Class and Description |
|---|---|
static interface |
FnWithMetricsWrapper.SupplierWithException<T>
Interface for functions to be wrapped with metrics.
|
| Constructor and Description |
|---|
FnWithMetricsWrapper(SamzaMetricsContainer metricsContainer,
java.lang.String stepName) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
wrap(FnWithMetricsWrapper.SupplierWithException<T> fn,
boolean shouldUpdateMetrics) |
public FnWithMetricsWrapper(SamzaMetricsContainer metricsContainer, java.lang.String stepName)
public <T> T wrap(FnWithMetricsWrapper.SupplierWithException<T> fn, boolean shouldUpdateMetrics) throws java.lang.Exception
java.lang.Exception