Interface TraceConsumer


public interface TraceConsumer
A consumer of traced method calls.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Method method, @Nullable Object returnValue, Object... args)
     
    Returns a composed TraceConsumer that performs, in sequence, this operation followed by the after operation.
  • Method Details

    • accept

      void accept(Method method, @Nullable Object returnValue, Object... args)
    • andThen

      default TraceConsumer andThen(TraceConsumer after)
      Returns a composed TraceConsumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.
      Parameters:
      after - the operation to perform after this operation
      Returns:
      a composed TraceConsumer that performs in sequence this operation followed by the after operation
      Throws:
      NullPointerException - if after is null