Interface AsynchronousInstrument<R extends AsynchronousInstrument.Result>

    • Method Detail

      • setCallback

        @Deprecated
        void setCallback​(AsynchronousInstrument.Callback<R> callback)
        Deprecated.
        Please register the callback while building the instrument. This method will be deprecated in 0.13.0.
        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.