Interface RPCHandler.HandlingResult

All Known Implementing Classes:
DefaultHandlingResult
Enclosing interface:
RPCHandler

public static interface RPCHandler.HandlingResult
Represents the result of a method invocation with rpc.
Since:
4.0
  • Method Details

    • wasSuccessful

      boolean wasSuccessful()
      Get if the method invocation was successful or not.
      Returns:
      true if the method invocation was successful, false otherwise.
    • invocationResult

      @UnknownNullability Object invocationResult()
      Get the actual invocation result wrapped in this class. This method is only nullable if the result of the invocation was successful (then the method result was null), otherwise the invocation result must be non-null and a subtype of a throwable.
      Returns:
      the unwrapped invocation result.
    • invocationHandler

      @NonNull @NonNull RPCHandler invocationHandler()
      The handler which handled the invocation request and created the result wrapper based on the output of the method.
      Returns:
      the handler which handled the invocation request.
    • targetMethodInformation

      @NonNull @NonNull MethodInformation targetMethodInformation()
      Get the information about the method which was invoked by the handler and returned the data wrapped in this result.
      Returns:
      the information about the method which was invoked by the handler.