Interface MarshallerMetricsCollector

  • public interface MarshallerMetricsCollector
    A interface against which execution metrics can be recorded. Allows recording of execution and streaming as seperate phases. See MetricsCollectingMarshaller for example usage
    • Method Detail

      • addCustomMetric

        @NonNull MarshallerMetricsCollector addCustomMetric​(String name,
                                                            long value)
        Records a custom metric, as required by the client code. This allows the client to record arbitrary numeric metrics.
        name - The name of the custom metric
        value - The numeric value of the custom metric
        the current collector object
        IllegalStateException - if a metric by that name has already been recorded by this collector
      • publish

        void publish()
        Publishes the metrics collected so far by this collector