Interface AsynchronousInstrument<R extends AsynchronousInstrument.Result>

    • Method Detail

      • setCallback

        void setCallback​(AsynchronousInstrument.Callback<R> callback)
        Sets a callback 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:
        callback - the callback to be executed before export.