Interface WrapInvoker

  • All Implemented Interfaces:

    
    public interface WrapInvoker
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • invokeRaw

         abstract List<UByte> ,java.lang.String,java.util.List,java.util.List,.)>invokeRaw(<Error class: unknown class> uri, String method, List<UByte> args, List<UByte> env, <Error class: unknown class> resolutionContext)

        Invokes the wrapper at the specified URI with the provided options.

        Parameters:
        uri - The URI of the wrapper to be invoked.
        method - The method to be called on the wrapper.
        args - Arguments for the method, encoded in the MessagePack byte format
        env - Env variables for the wrapper invocation, encoded in the MessagePack byte format
        resolutionContext - The FfiUriResolutionContext to be used during URI resolution, or null for a default context.
      • invokeRaw

         abstract Result<ByteArray> )>invokeRaw(Uri uri, String method, ByteArray args, ByteArray env, <Error class: unknown class> resolutionContext)

        Invoke a wrapper. This method automatically retrieves and caches the wrapper.

        Parameters:
        uri - The URI of the wrapper to be invoked.
        method - The method to be called on the wrapper.
        args - Arguments for the method, encoded in the MessagePack byte format
        env - Env variables for the wrapper invocation, encoded in the MessagePack byte format
        resolutionContext - The FfiUriResolutionContext to be used during URI resolution, or null for a default context.
      • getImplementations

         abstract Result<List<Uri>> getImplementations(Uri uri)

        Retrieves the list of implementation URIs for the specified interface URI.

        Parameters:
        uri - The URI of the interface for which implementations are being requested.
      • getEnvByUri

         abstract Result<Map<String, Object>> getEnvByUri(Uri uri)

        Returns an env (a set of environmental variables) from the configuration used to instantiate the client.

        Parameters:
        uri - the URI used to register the env