Class Tracing


  • public class Tracing
    extends Object
    Global registration for tracing and thread accounting implementations
    • Method Detail

      • register

        public static boolean register​(Tracer tracer)
        User once registration point to allow customization of tracing behaviour. Registration will be successful if this was the first attempt to register and registration happened before first use of the tracer.
        Parameters:
        tracer - the tracer implementation
        Returns:
        true if the registration was successful.
      • register

        public static boolean register​(ThreadResourceUsageAccountant threadResourceUsageAccountant)
        Registration point to allow customization of thread accounting behavior. Registration will be successful if this was the first attempt to register and registration happened before first use of the thread accountant.
        Parameters:
        threadResourceUsageAccountant - the threadAccountant implementation
        Returns:
        true if the registration was successful.
      • getTracer

        public static Tracer getTracer()
        Returns:
        the registered tracer.
      • activeRecording

        public static InvocationRecording activeRecording()
        Get the active recording on the current thread to write values into.
        Returns:
        the active recording