Interface RPCInvocationContext

All Known Implementing Classes:
DefaultRPCInvocationContext

public interface RPCInvocationContext
The invocation context holds all information needed for a handler to process a method a call properly.
Since:
4.0
  • Method Details

    • builder

      Get a new builder instance for a rpc invocation context.
      Returns:
      a new invocation context builder.
    • methodName

      @NonNull @NonNull String methodName()
      Get the name of the method which should be invoked during the current rpc processing.
      Returns:
      the name of the method which should be invoked.
    • methodDescriptor

      @NonNull @NonNull String methodDescriptor()
      Get the descriptor of the method that should be executed.
      Returns:
      the descriptor of the method that should be executed.
    • argumentInformation

      @NonNull @NonNull DataBuf argumentInformation()
      Get the data buffer slice which should contain the argument information for the current method invocation. The buffer can contain more, unrelated data.
      Returns:
      the data buffer which should contain the argument information for the current method invocation.
    • workingInstance

      @Nullable @Nullable Object workingInstance()
      Get the instance (if any) which should be considered first for a method invocation. This is used for calling methods based on the result of the previous rpc in a chained rpc.
      Returns:
      the instance to use for calling the requested method (if any).