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 Summary
Modifier and TypeMethodDescriptionThe handler which handled the invocation request and created the result wrapper based on the output of the method.Get the actual invocation result wrapped in this class.Get the information about the method which was invoked by the handler and returned the data wrapped in this result.booleanGet if the method invocation was successful or not.
-
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
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
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.
-