Uses of Record Class
eu.cloudnetservice.driver.network.rpc.introspec.RPCMethodMetadata
Packages that use RPCMethodMetadata
Package
Description
-
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc
Methods in eu.cloudnetservice.driver.network.rpc that return RPCMethodMetadata -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.defaults.generation
Methods in eu.cloudnetservice.driver.network.rpc.defaults.generation with parameters of type RPCMethodMetadataModifier and TypeMethodDescriptionRPCGenerationContext.TypeDescriptorField.forMethod(@NonNull RPCMethodMetadata methodMetadata) Generates a type descriptor field instance for the given method metadata.voidBasicRPCMethodGenerator.generate(@NonNull CodeBuilderPREVIEW codeBuilder, @NonNull ClassDesc generatingClass, @NonNull RPCGenerationContext context, @NonNull RPCMethodMetadata targetMethod, @NonNull MethodTypeDesc targetMethodDesc) Generates the method body.voidChainedRPCMethodGenerator.generate(@NonNull CodeBuilderPREVIEW codeBuilder, @NonNull ClassDesc generatingClass, @NonNull RPCGenerationContext context, @NonNull RPCMethodMetadata targetMethod, @NonNull MethodTypeDesc targetMethodDesc) Generates the method body.voidRPCMethodGenerator.generate(@NonNull CodeBuilderPREVIEW codeBuilder, @NonNull ClassDesc generatingClass, @NonNull RPCGenerationContext context, @NonNull RPCMethodMetadata targetMethod, @NonNull MethodTypeDesc targetMethodDesc) Generates the method body.RPCGenerationContext.registerTypeDescriptorField(@NonNull RPCMethodMetadata methodMetadata) Registers the need for a type descriptor field for the given method metadata and returns the field name of the final field that will be added and initialized to the class.private intChainedRPCMethodGenerator.storeRPCChainBase(@NonNull CodeBuilderPREVIEW codeBuilder, @NonNull ClassDesc generatingClass, @NonNull RPCGenerationContext context, @NonNull RPCMethodMetadata targetMethod) Constructs the base rpc chain for the chained invocation of the method and stores it into the returned slot.private voidChainedRPCMethodGenerator.validateConstructorArgumentMapping(int[] paramMappings, @NonNull RPCMethodMetadata targetMethod, @NonNull Constructor<?> targetConstructor) Validates that the given parameter mappings match with the method type of the target method and the given resolved constructor from the class that is being implemented.private voidChainedRPCMethodGenerator.validateConstructorArgumentMapping(int[] paramMappings, @NonNull Class<?> chainBaseType, @NonNull RPCMethodMetadata targetMethod) Ensures that the provided parameter mapping of the user for the method to constructor parameters is valid, by resolving the target constructor that will be called and validating against that. -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.defaults.handler
Fields in eu.cloudnetservice.driver.network.rpc.defaults.handler with type parameters of type RPCMethodMetadataModifier and TypeFieldDescriptionprivate final com.github.benmanes.caffeine.cache.Cache<RPCMethodMetadata, MethodInvoker> DefaultRPCHandler.methodInvokerCacheMethods in eu.cloudnetservice.driver.network.rpc.defaults.handler with parameters of type RPCMethodMetadataModifier and TypeMethodDescriptionDefaultRPCHandler.deserializeMethodArguments(@NonNull RPCMethodMetadata targetMethod, @NonNull DataBuf encodedArgumentsBuffer) Deserializes the method arguments provided in the given buffer based on the generic parameter types provided from the given target method metadata (in order).private @NonNull io.vavr.control.Try<MethodInvoker> DefaultRPCHandler.getOrCreateMethodInvoker(@NonNull RPCMethodMetadata methodMetadata) Gets an existing method invoker for the given target method from the cache or creates a new one. -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.defaults.handler.invoker
Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler.invoker with parameters of type RPCMethodMetadataModifier and TypeMethodDescriptionstatic @NonNull MethodInvokerMethodInvokerGenerator.makeMethodInvoker(@NonNull RPCMethodMetadata targetMethod) -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.defaults.rpc
Fields in eu.cloudnetservice.driver.network.rpc.defaults.rpc declared as RPCMethodMetadataMethods in eu.cloudnetservice.driver.network.rpc.defaults.rpc that return RPCMethodMetadataModifier and TypeMethodDescriptionDefaultRPC.targetMethod()Get the full metadata of the target method.Constructors in eu.cloudnetservice.driver.network.rpc.defaults.rpc with parameters of type RPCMethodMetadataModifierConstructorDescriptionDefaultRPC(@NonNull Class<?> targetClass, @NonNull RPCFactory sourceFactory, @NonNull ObjectMapper objectMapper, @NonNull DataBufFactory dataBufFactory, @NonNull RPCSender sender, @NonNull Supplier<NetworkChannel> channelSupplier, @Nullable Duration executionTimeout, @NonNull RPCMethodMetadata targetMethod, @NonNull Object[] arguments) Constructs a new default rpc instance. -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.defaults.sender
Methods in eu.cloudnetservice.driver.network.rpc.defaults.sender with parameters of type RPCMethodMetadataModifier and TypeMethodDescriptionDefaultRPCSender.invokeMethod(@NonNull RPCMethodMetadata method, Object... args) Creates a new RPC to call the given target method with the given arguments. -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.handler
Fields in eu.cloudnetservice.driver.network.rpc.handler declared as RPCMethodMetadataModifier and TypeFieldDescriptionprivate final @NonNull RPCMethodMetadataRPCInvocationResult.Failure.invokedMethodThe field for theinvokedMethodrecord component.private final @NonNull RPCMethodMetadataRPCInvocationResult.Success.invokedMethodThe field for theinvokedMethodrecord component.Methods in eu.cloudnetservice.driver.network.rpc.handler that return RPCMethodMetadataModifier and TypeMethodDescriptionRPCInvocationResult.Failure.invokedMethod()Returns the value of theinvokedMethodrecord component.RPCInvocationResult.Success.invokedMethod()Returns the value of theinvokedMethodrecord component.Constructors in eu.cloudnetservice.driver.network.rpc.handler with parameters of type RPCMethodMetadataModifierConstructorDescriptionFailure(@NonNull Throwable caughtException, @NonNull RPCHandler invocationHandler, @NonNull RPCMethodMetadata invokedMethod) Creates an instance of aFailurerecord class.Success(@Nullable Object invocationResult, @NonNull RPCHandler invocationHandler, @NonNull RPCMethodMetadata invokedMethod) Creates an instance of aSuccessrecord class. -
Uses of RPCMethodMetadata in eu.cloudnetservice.driver.network.rpc.introspec
Fields in eu.cloudnetservice.driver.network.rpc.introspec with type parameters of type RPCMethodMetadataModifier and TypeFieldDescriptionprivate final com.google.common.collect.Table<String, String, RPCMethodMetadata> RPCClassMetadata.methodsMethods in eu.cloudnetservice.driver.network.rpc.introspec that return RPCMethodMetadataModifier and TypeMethodDescriptionRPCClassMetadata.findMethod(@NonNull String name, @NonNull TypeDescriptor typeDescriptor) Returns the method that matches the given name and type descriptor, or null if no such method exists.(package private) static @NonNull RPCMethodMetadataRPCMethodMetadata.fromMethod(@NonNull Method method) Constructs and validates a rpc method metadata based on the properties of the given method.Methods in eu.cloudnetservice.driver.network.rpc.introspec that return types with arguments of type RPCMethodMetadataModifier and TypeMethodDescriptionRPCClassMetadata.findMethods(@NonNull Predicate<RPCMethodMetadata> filter) Returns all methods that are known to this class metadata that match the given filter.RPCClassMetadata.methods()Get an immutable collection of all methods that can be used for rpc in the target class.Method parameters in eu.cloudnetservice.driver.network.rpc.introspec with type arguments of type RPCMethodMetadataModifier and TypeMethodDescriptionRPCClassMetadata.findMethods(@NonNull Predicate<RPCMethodMetadata> filter) Returns all methods that are known to this class metadata that match the given filter.Constructor parameters in eu.cloudnetservice.driver.network.rpc.introspec with type arguments of type RPCMethodMetadataModifierConstructorDescriptionprivateRPCClassMetadata(@NonNull Class<?> target, @Nullable Duration rpcTimeout, @NonNull com.google.common.collect.Table<String, String, RPCMethodMetadata> methods) Constructs a full instance of a class metadata from the given parameters.