Interface InvocationInterceptor.Invocation<T>

Type Parameters:
T - the result type
Enclosing interface:
InvocationInterceptor

@API(status=EXPERIMENTAL, since="5.5") public static interface InvocationInterceptor.Invocation<T>
An invocation that returns a result and may throw a Throwable.

This interface is not intended to be implemented by clients.

Since:
5.5
  • Method Summary

    Modifier and Type
    Method
    Description
    Proceed with this invocation.
    default void
    Explicitly skip this invocation.
  • Method Details

    • proceed

      T proceed() throws Throwable
      Proceed with this invocation.
      Returns:
      the result of this invocation; potentially null.
      Throws:
      Throwable - in case the invocation failed
    • skip

      @API(status=EXPERIMENTAL, since="5.6") default void skip()
      Explicitly skip this invocation.

      This allows to bypass the check that proceed() must be called at least once. The default implementation does nothing.