Class JsonInvocationImpl<T>

    • Constructor Detail

      • JsonInvocationImpl

        public JsonInvocationImpl​(Class<T> clazz)
      • JsonInvocationImpl

        public JsonInvocationImpl​(T instance,
                                  Class<T> clazz)
      • JsonInvocationImpl

        public JsonInvocationImpl​(T instance,
                                  Class<T> clazz,
                                  List<Type> classGenTypes)
    • Method Detail

      • invokeAsync

        public void invokeAsync​(long functionPointerAddress,
                                String methodName,
                                InvocationArg... args)
        Description copied from interface: NativeInvocation
        Invokes asynchronously a method of the instance of the class that is set for this NativeInvocation. The result of the invocation should be provided later using the performCallback method of a NativeCallbackSupport class. Any possible returned objects from the actual synchronous invocation of the defined method will be dropped.
        Specified by:
        invokeAsync in interface NativeInvocation<T>
        Parameters:
        functionPointerAddress - The address of the function pointer that will be used later in the native side in order to actually paerform the callback.
        methodName - The method name
        args - The arguments to use when invoking the callback method (the functionPointer)
      • invokeToChannel

        public void invokeToChannel​(long channelAddress,
                                    String methodName,
                                    InvocationArg... args)
        Description copied from interface: NativeInvocation
        Invokes a method of the instance of the class that is set for this NativeInvocation. The result of the invocation should be provided later using the doCallback method of a NativeCallbackToRustChannelSupport class. Any possible returned objects from the actual synchronous invocation of the defined method will be dropped.
        Specified by:
        invokeToChannel in interface NativeInvocation<T>
        Parameters:
        channelAddress - The memory address of the channel
        methodName - The method name
        args - The arguments