Interface RPCInvocationContext


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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents the builder for a rpc invocation context.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the data buffer slice which should contain the argument information for the current method invocation.
    Get the descriptor of the method that should be executed.
    Get the name of the method which should be invoked during the current rpc processing.
    Get the instance (if any) which should be considered first for a method invocation.
  • Method Details

    • 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).