Uses of Interface
eu.cloudnetservice.driver.network.rpc.RPCHandler
Packages that use RPCHandler
Package
Description
-
Uses of RPCHandler in eu.cloudnetservice.driver.network.rpc
Methods in eu.cloudnetservice.driver.network.rpc that return RPCHandlerModifier and TypeMethodDescriptionGet the handler which is registered for the given target class or null if no handler for the class is registered.Get the handler which is registered for the given class by its name or null if no handler for the class is registered.RPCHandler.HandlingResult.invocationHandler()The handler which handled the invocation request and created the result wrapper based on the output of the method.RPCFactory.newHandler(@NonNull Class<?> clazz, @Nullable Object binding) Constructs a new rpc handler for the given class.RPCFactory.newHandler(@NonNull Class<?> clazz, @Nullable Object binding, @NonNull ObjectMapper objectMapper, @NonNull DataBufFactory dataBufFactory) Constructs a new rpc handler for the given class.Methods in eu.cloudnetservice.driver.network.rpc that return types with arguments of type RPCHandlerModifier and TypeMethodDescriptionRPCHandlerRegistry.registeredHandlers()Get all handlers which are registered to this registry.Methods in eu.cloudnetservice.driver.network.rpc with parameters of type RPCHandlerModifier and TypeMethodDescriptionbooleanRPCHandlerRegistry.registerHandler(@NonNull RPCHandler rpcHandler) Registers the given handler to this registry, replacing the handler which was registered previously for the target class of the handler.booleanRPCHandlerRegistry.unregisterHandler(@NonNull RPCHandler rpcHandler) Unregisters the given rpc handler from this registry if previously registered. -
Uses of RPCHandler in eu.cloudnetservice.driver.network.rpc.defaults
Methods in eu.cloudnetservice.driver.network.rpc.defaults that return RPCHandlerModifier and TypeMethodDescriptionDefaultRPCFactory.newHandler(@NonNull Class<?> clazz, @Nullable Object binding) Constructs a new rpc handler for the given class.DefaultRPCFactory.newHandler(@NonNull Class<?> clazz, @Nullable Object binding, @NonNull ObjectMapper objectMapper, @NonNull DataBufFactory dataBufFactory) Constructs a new rpc handler for the given class. -
Uses of RPCHandler in eu.cloudnetservice.driver.network.rpc.defaults.handler
Classes in eu.cloudnetservice.driver.network.rpc.defaults.handler that implement RPCHandlerModifier and TypeClassDescriptionclassRepresents the default implementation of a rpc handler.Fields in eu.cloudnetservice.driver.network.rpc.defaults.handler declared as RPCHandlerModifier and TypeFieldDescriptionprivate final @NonNull RPCHandlerDefaultHandlingResult.invocationHandlerThe field for theinvocationHandlerrecord component.Fields in eu.cloudnetservice.driver.network.rpc.defaults.handler with type parameters of type RPCHandlerModifier and TypeFieldDescriptionprotected final Map<String,RPCHandler> DefaultRPCHandlerRegistry.handlersMethods in eu.cloudnetservice.driver.network.rpc.defaults.handler that return RPCHandlerModifier and TypeMethodDescriptionGet the handler which is registered for the given target class or null if no handler for the class is registered.Get the handler which is registered for the given class by its name or null if no handler for the class is registered.DefaultHandlingResult.invocationHandler()Returns the value of theinvocationHandlerrecord component.Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler that return types with arguments of type RPCHandlerModifier and TypeMethodDescriptionDefaultRPCHandlerRegistry.registeredHandlers()Get all handlers which are registered to this registry.Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler with parameters of type RPCHandlerModifier and TypeMethodDescriptionstatic RPCHandler.HandlingResultDefaultHandlingResult.failure(@NonNull MethodInformation information, @NonNull RPCHandler invocationHandler, @NonNull Throwable result) Constructs a new failed invocation result, indicating that an exception was thrown as the result of the method call.booleanDefaultRPCHandlerRegistry.registerHandler(@NonNull RPCHandler rpcHandler) Registers the given handler to this registry, replacing the handler which was registered previously for the target class of the handler.static RPCHandler.HandlingResultDefaultHandlingResult.success(@NonNull MethodInformation methodInformation, @NonNull RPCHandler invocationHandler, @Nullable Object result) Constructs a new successful invocation result with the information provided.booleanDefaultRPCHandlerRegistry.unregisterHandler(@NonNull RPCHandler rpcHandler) Unregisters the given rpc handler from this registry if previously registered.Constructors in eu.cloudnetservice.driver.network.rpc.defaults.handler with parameters of type RPCHandlerModifierConstructorDescriptionDefaultHandlingResult(boolean wasSuccessful, @Nullable Object invocationResult, @NonNull RPCHandler invocationHandler, @NonNull MethodInformation targetMethodInformation) Creates an instance of aDefaultHandlingResultrecord class.