Interface RPCMethodMetadata

All Superinterfaces:
Named

public interface RPCMethodMetadata extends Named
The metadata of a method that can be invoked using rpc.
Since:
4.0
  • Method Details

    • concrete

      boolean concrete()
      Get if the method is concretely implemented, false if the method is abstract.
      Returns:
      true if the method is concretely implemented, false if the method is abstract.
    • asyncReturnType

      boolean asyncReturnType()
      Get if the method has an async return type (returns a supported future subtype).
      Returns:
      true if the method has an async return type (returns a supported future subtype).
    • executionResultIgnored

      boolean executionResultIgnored()
      Get if the method was specifically annotated to not wait for the rpc execution.
      Returns:
      true if the method was specifically annotated to not wait for the rpc execution.
    • returnType

      @NonNull @NonNull Type returnType()
      Get the full generic return type of the method.
      Returns:
      the full generic return type of the method.
    • parameterTypes

      @NonNull @NonNull Type[] parameterTypes()
      Get the fully generic parameter types.
      Returns:
      the fully generic parameter types.
    • methodType

      Get the method type of the method.
      Returns:
      the method type of the method.
    • definingClass

      @NonNull @NonNull Class<?> definingClass()
      Get the class in which the method is defined.
      Returns:
      the class in which the method is defined.
    • executionTimeout

      @Nullable @Nullable Duration executionTimeout()
      Get the execution timeout of the method, null if not defined.
      Returns:
      the execution timeout of the method, null if not defined.