Class NullLoggingContextFacilityImpl

    • Method Detail

      • getImmutableThreadContext

        public Map<String,​String> getImmutableThreadContext()
        Description copied from interface: LoggingContextFacility

        Gets an immutable copy of the current thread’s logging context.

        Intended for use by components with internal thread pools, to manage moving a logging context between an RA internal thread, and an activity plus rhino thread.

        Specified by:
        getImmutableThreadContext in interface LoggingContextFacility
        Returns:
        Map<String, String> context
      • clearThreadContext

        public void clearThreadContext()
        Description copied from interface: LoggingContextFacility

        Clears the current thread’s logging context.

        Provided for use by components with internal thread pools, to remove the logging context from an RA internal thread when the thread has completed work associated with an activity.

        Specified by:
        clearThreadContext in interface LoggingContextFacility
      • put

        public void put​(String key,
                        String value)
        Description copied from interface: LoggingContextFacility

        Add a single key/value pair to the current thread’s logging context. This does not modify the logging context of any activities directly. Provided for use by RAs before an activity has been started/located, for example in a network IO thread.

        Specified by:
        put in interface LoggingContextFacility
        Parameters:
        key - String context key to add to the thread’s logging context
        value - String context value to add to the thread’s logging context
      • putAll

        public void putAll​(Map<String,​String> entries)
        Description copied from interface: LoggingContextFacility

        Add a map of key/value pairs to the current thread’s logging context. This does not modify the logging context of any activities directly. Provided for use by RAs before an activity has been started/located, for example in a network IO thread.

        Specified by:
        putAll in interface LoggingContextFacility
        Parameters:
        entries - Map of key, value pairs to add to the thread’s logging context
      • remove

        public void remove​(String key)
        Description copied from interface: LoggingContextFacility

        Remove a key from the current thread’s logging context. This does not modify the logging context of any activities directly. Provided for use by RAs before an activity has been started/located, for example in a network IO thread.

        Specified by:
        remove in interface LoggingContextFacility
        Parameters:
        key - String key to remove from the thread’s logging context