Package 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.0
- See Also:
-
Method Summary
-
Method Details
-
accept
Performs an operation given the specified arguments.- Parameters:
parameter
- the parameterparameterIndex
- Index of the parameterstate
- the state data
-