Class ExecutorLocals

    • Method Detail

      • current

        public static ExecutorLocals current()
        Returns:
        an ExecutorLocals object which has the current trace state and client warn state.
      • clear

        public static void clear()
      • get

        public Closeable get()
        Overwrite current locals, and return the previous ones
        Specified by:
        get in interface WithResources
        Returns:
        an object that closes any instantiated resources
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Closeable