public class MethodExecutionInfoFormatter extends Object implements Function<MethodExecutionInfo,String>
MethodExecutionInfo to String.
 Sample usage:
   MethodExecutionInfoFormatter formatter = MethodExecutionInfoFormatter.withDefault();
   ProxyConnectionFactory.builder(connectionFactory)
     .onAfterMethod(execInfo ->
        execInfo.map(methodExecutionFormatter::format)  // convert
          .doOnNext(System.out::println)  // print out to sysout
          .subscribe())
     .create();
 | Constructor and Description | 
|---|
MethodExecutionInfoFormatter()  | 
| Modifier and Type | Method and Description | 
|---|---|
MethodExecutionInfoFormatter | 
addConsumer(BiConsumer<MethodExecutionInfo,StringBuilder> consumer)
Register a consumer that converts  
MethodExecutionInfo to a String. | 
String | 
apply(MethodExecutionInfo executionInfo)  | 
String | 
format(MethodExecutionInfo executionInfo)
Convert the given  
MethodExecutionInfo to String using registered consumers. | 
static MethodExecutionInfoFormatter | 
withDefault()
Create a  
MethodExecutionInfoFormatter with default consumers that format the MethodExecutionInfo. | 
public static MethodExecutionInfoFormatter withDefault()
MethodExecutionInfoFormatter with default consumers that format the MethodExecutionInfo.public String apply(MethodExecutionInfo executionInfo)
apply in interface Function<MethodExecutionInfo,String>public String format(MethodExecutionInfo executionInfo)
MethodExecutionInfo to String using registered consumers.executionInfo - inputIllegalArgumentException - if executionInfo is nullpublic MethodExecutionInfoFormatter addConsumer(BiConsumer<MethodExecutionInfo,StringBuilder> consumer)
MethodExecutionInfo to a String.consumer - a BiConsumer that takes a MethodExecutionInfo and write to the StringBuilder.IllegalArgumentException - if consumer is nullCopyright © 2025. All rights reserved.