Class DefaultRPCInvocationContext
java.lang.Object
eu.cloudnetservice.driver.impl.network.rpc.handler.DefaultRPCInvocationContext
- All Implemented Interfaces:
eu.cloudnetservice.driver.network.rpc.handler.RPCInvocationContext
public final class DefaultRPCInvocationContext
extends Object
implements eu.cloudnetservice.driver.network.rpc.handler.RPCInvocationContext
The default implementation of an RPC invocation context.
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe default builder implementation for an RPC invocation context. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefaultRPCInvocationContext(@NonNull String methodName, @NonNull String methodDescriptor, @NonNull eu.cloudnetservice.driver.network.buffer.DataBuf argumentInformation, @Nullable Object workingInstance) Constructs a new default RPC invocation context instance, only used by the builder. -
Method Summary
-
Field Details
-
methodName
-
methodDescriptor
-
argumentInformation
private final eu.cloudnetservice.driver.network.buffer.DataBuf argumentInformation -
workingInstance
-
-
Constructor Details
-
DefaultRPCInvocationContext
private DefaultRPCInvocationContext(@NonNull @NonNull String methodName, @NonNull @NonNull String methodDescriptor, @NonNull @NonNull eu.cloudnetservice.driver.network.buffer.DataBuf argumentInformation, @Nullable @Nullable Object workingInstance) Constructs a new default RPC invocation context instance, only used by the builder.- Parameters:
methodName- the name of the method to invoke.methodDescriptor- the descriptor of the method to invoke.argumentInformation- the buffer containing the information about the arguments for the target method.workingInstance- the instance on which the method should be called, can be null.- Throws:
NullPointerException- if the given method name, descriptor or argument info is null.
-
-
Method Details
-
methodName
-
methodDescriptor
-
argumentInformation
-
workingInstance
-