Class LongAdderWithDelegateMetric

    • Constructor Detail

      • LongAdderWithDelegateMetric

        public LongAdderWithDelegateMetric​(String name,
                                           LongAdderWithDelegateMetric.Delegate delegate,
                                           @Nullable
                                           @Nullable String descr)
        Parameters:
        name - Name.
        delegate - Delegate to which all updates from new metric will be delegated to.
        descr - Description.
    • Method Detail

      • add

        public void add​(long x)
        Adds x to the metric.
        Overrides:
        add in class LongAdderMetric
        Parameters:
        x - Value to be added.