org.apache.logging.log4j.message

Interface ParameterConsumer<S>

  • Type Parameters:
    S - state data


    public interface ParameterConsumer<S>
    An operation that accepts two input arguments and returns no result.

    The third parameter lets callers pass in a stateful object to be modified with the key-value pairs, so the ParameterConsumer implementation itself can be stateless and potentially reusable.

    Since:
    2.11
    See Also:
    ReusableMessage
    • Method Detail

      • accept

        void accept(Object parameter,
                    int parameterIndex,
                    S state)
        Performs an operation given the specified arguments.
        Parameters:
        parameter - the parameter
        parameterIndex - Index of the parameter
        state -

Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.