Package io.polywrap.core
Interface Wrapper
-
- All Implemented Interfaces:
public interface WrapperThe Wrapper definition, which can be used to invoke this particular Wrapper.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWrapper.Companion
-
Method Summary
Modifier and Type Method Description abstract List<UByte>)>invoke(String method, List<UByte> args, List<UByte> env, <Error class: unknown class> invoker)Invokes a method in the Wrapper with the specified options and invoker. abstract Result<ByteArray>invoke(String method, ByteArray args, ByteArray env, Invoker invoker)Invokes a method in the Wrapper with the specified options and invoker. -
-
Method Detail
-
invoke
abstract List<UByte> )>invoke(String method, List<UByte> args, List<UByte> env, <Error class: unknown class> invoker)
Invokes a method in the Wrapper with the specified options and invoker.
- Parameters:
method- The method to be called on the wrapper.args- Arguments for the method, encoded in the MessagePack byte formatenv- Env variables for the wrapper invocation, encoded in the MessagePack byte formatinvoker- The invoker will be used for any sub-invocations that occur.
-
invoke
abstract Result<ByteArray> invoke(String method, ByteArray args, ByteArray env, Invoker invoker)
Invokes a method in the Wrapper with the specified options and invoker.
- Parameters:
method- The method to be called on the wrapper.args- Arguments for the method, encoded in the MessagePack byte formatenv- Env variables for the wrapper invocation, encoded in the MessagePack byte formatinvoker- The Invoker will be used for any sub-invocations that occur.
-
-
-
-