Class MethodExecutionInfoFormatter

java.lang.Object
io.r2dbc.proxy.support.MethodExecutionInfoFormatter
All Implemented Interfaces:
Function<MethodExecutionInfo, String>

public class MethodExecutionInfoFormatter extends Object implements Function<MethodExecutionInfo, String>
Convert 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();
 
Author:
Tadaya Tsuyukubo