Interface PlatformTargetProxy

  • All Known Implementing Classes:
    PlatformTargetProxyImpl

    public interface PlatformTargetProxy
    Platform target that is invoked via JNI and propagates calls to underlying PlatformTarget.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long inLongOutLong​(int type, long val)
      Operation accepting long value and returning long value.
      Object inObjectStreamOutObjectStream​(int type, @Nullable Object arg, long inMemPtr, long outMemPtr)
      Operation accepting an object and a memory stream and returning result to another memory stream and an object.
      void inStreamAsync​(int type, long memPtr)
      Asynchronous operation accepting memory stream.
      long inStreamOutLong​(int type, long memPtr)
      Operation accepting memory stream and returning long value.
      Object inStreamOutObject​(int type, long memPtr)
      Operation accepting memory stream and returning object.
      Object inStreamOutObjectAsync​(int type, long memPtr)
      Asynchronous operation accepting memory stream and returning PlatformListenableTarget.
      void inStreamOutStream​(int type, long inMemPtr, long outMemPtr)
      Operation accepting one memory stream and returning result to another memory stream.
      Object outObject​(int type)
      Operation returning object result.
      void outStream​(int type, long memPtr)
      Operation returning result to memory stream.
      PlatformTarget unwrap()
      Returns the underlying target.
    • Method Detail

      • inLongOutLong

        long inLongOutLong​(int type,
                           long val)
                    throws Exception
        Operation accepting long value and returning long value.
        Parameters:
        type - Operation type.
        val - Value.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • inStreamOutLong

        long inStreamOutLong​(int type,
                             long memPtr)
                      throws Exception
        Operation accepting memory stream and returning long value.
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • inStreamOutObject

        Object inStreamOutObject​(int type,
                                 long memPtr)
                          throws Exception
        Operation accepting memory stream and returning object.
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • inStreamOutStream

        void inStreamOutStream​(int type,
                               long inMemPtr,
                               long outMemPtr)
                        throws Exception
        Operation accepting one memory stream and returning result to another memory stream.
        Parameters:
        type - Operation type.
        inMemPtr - Input memory pointer.
        outMemPtr - Output memory pointer.
        Throws:
        Exception - In case of failure.
      • inObjectStreamOutObjectStream

        Object inObjectStreamOutObjectStream​(int type,
                                             @Nullable
                                             @Nullable Object arg,
                                             long inMemPtr,
                                             long outMemPtr)
                                      throws Exception
        Operation accepting an object and a memory stream and returning result to another memory stream and an object.
        Parameters:
        type - Operation type.
        arg - Argument (optional).
        inMemPtr - Input memory pointer.
        outMemPtr - Output memory pointer.
        Returns:
        Result.
        Throws:
        Exception - In case of failure.
      • outStream

        void outStream​(int type,
                       long memPtr)
                throws Exception
        Operation returning result to memory stream.
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Throws:
        Exception - In case of failure.
      • outObject

        Object outObject​(int type)
                  throws Exception
        Operation returning object result.
        Parameters:
        type - Operation type.
        Returns:
        Result.
        Throws:
        Exception - If failed.
      • inStreamAsync

        void inStreamAsync​(int type,
                           long memPtr)
                    throws Exception
        Asynchronous operation accepting memory stream.
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Throws:
        Exception - If case of failure.
      • inStreamOutObjectAsync

        Object inStreamOutObjectAsync​(int type,
                                      long memPtr)
                               throws Exception
        Asynchronous operation accepting memory stream and returning PlatformListenableTarget. Supports cancellable async operations.
        Parameters:
        type - Operation type.
        memPtr - Memory pointer.
        Returns:
        Result.
        Throws:
        Exception - If case of failure.
      • unwrap

        PlatformTarget unwrap()
        Returns the underlying target.
        Returns:
        Underlying target.