Interface AsynchronousInstrumentBuilder<R>

    • Method Detail

      • setUpdater

        AsynchronousInstrumentBuilder<R> setUpdater​(Consumer<R> updater)
        Sets a consumer that gets executed every collection interval.

        Evaluation is deferred until needed, if this AsynchronousInstrument metric is not exported then it will never be called.

        Parameters:
        updater - the consumer to be executed before export.