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
  • Field Details

    • methodName

      private final String methodName
    • methodDescriptor

      private final String methodDescriptor
    • argumentInformation

      private final eu.cloudnetservice.driver.network.buffer.DataBuf argumentInformation
    • workingInstance

      private final Object 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

      @NonNull public @NonNull String methodName()
      Specified by:
      methodName in interface eu.cloudnetservice.driver.network.rpc.handler.RPCInvocationContext
    • methodDescriptor

      @NonNull public @NonNull String methodDescriptor()
      Specified by:
      methodDescriptor in interface eu.cloudnetservice.driver.network.rpc.handler.RPCInvocationContext
    • argumentInformation

      @NonNull public @NonNull eu.cloudnetservice.driver.network.buffer.DataBuf argumentInformation()
      Specified by:
      argumentInformation in interface eu.cloudnetservice.driver.network.rpc.handler.RPCInvocationContext
    • workingInstance

      @Nullable public @Nullable Object workingInstance()
      Specified by:
      workingInstance in interface eu.cloudnetservice.driver.network.rpc.handler.RPCInvocationContext