Class ReducedMetric<T,​U,​V>

  • Type Parameters:
    T - accumulator to hold and update state
    U - type of input that can be handled
    V - type of reduced value
    All Implemented Interfaces:
    IMetric<V>

    public class ReducedMetric<T,​U,​V>
    extends Object
    implements IMetric<V>
    Apply an update to an metric using an IReducer for which a result can be extracted.
    • Constructor Detail

      • ReducedMetric

        public ReducedMetric​(IReducer<T,​U,​V> aReducer)
    • Method Detail

      • update

        public void update​(U value)