Interface PlatformTargetProxy
-
- All Known Implementing Classes:
PlatformTargetProxyImpl
public interface PlatformTargetProxyPlatform target that is invoked via JNI and propagates calls to underlyingPlatformTarget.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longinLongOutLong(int type, long val)Operation accepting long value and returning long value.ObjectinObjectStreamOutObjectStream(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.voidinStreamAsync(int type, long memPtr)Asynchronous operation accepting memory stream.longinStreamOutLong(int type, long memPtr)Operation accepting memory stream and returning long value.ObjectinStreamOutObject(int type, long memPtr)Operation accepting memory stream and returning object.ObjectinStreamOutObjectAsync(int type, long memPtr)Asynchronous operation accepting memory stream and returning PlatformListenableTarget.voidinStreamOutStream(int type, long inMemPtr, long outMemPtr)Operation accepting one memory stream and returning result to another memory stream.ObjectoutObject(int type)Operation returning object result.voidoutStream(int type, long memPtr)Operation returning result to memory stream.PlatformTargetunwrap()Returns the underlying target.
-
-
-
Method Detail
-
inLongOutLong
long inLongOutLong(int type, long val) throws ExceptionOperation 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 ExceptionOperation 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 ExceptionOperation 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 ExceptionOperation 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 ExceptionAsynchronous 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.
-
-