Interface Client

  • All Implemented Interfaces:

    
    public interface Client
    
                        

    Client invokes wrappers and interacts with wrap packages.

    • 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
    • Method Summary

      Modifier and Type Method Description
      abstract Result<Wrapper> )>loadWrapper(Uri uri, <Error class: unknown class> resolutionContext) Resolves the Wrapper at the specified URI.
      abstract Result<ByteArray> )>invokeWrapperRaw(Wrapper wrapper, Uri uri, String method, ByteArray args, ByteArray env, <Error class: unknown class> resolutionContext) Invoke a wrapper using an instance of the wrapper.
      abstract Result<<Error class: unknown class>> )>tryResolveUri(Uri uri, <Error class: unknown class> resolutionContext) Try to resolve a URI to a URI, package or wrapper.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • loadWrapper

         abstract Result<Wrapper> )>loadWrapper(Uri uri, <Error class: unknown class> resolutionContext)

        Resolves the Wrapper at the specified URI.

        Parameters:
        uri - The URI of the wrapper to resolve.
        resolutionContext - The FfiUriResolutionContext to be used during URI resolution, or null for a default context.
      • invokeWrapperRaw

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

        Invoke a wrapper using an instance of the wrapper.

        Parameters:
        wrapper - An instance of a Wrapper to invoke.
        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.
      • tryResolveUri

         abstract Result<<Error class: unknown class>> )>tryResolveUri(Uri uri, <Error class: unknown class> resolutionContext)

        Try to resolve a URI to a URI, package or wrapper.

        Parameters:
        uri - The URI to resolve.
        resolutionContext - The FfiUriResolutionContext to be used during URI resolution, or null for a default context.