public interface ApiMethod
ApiMethod interface provides introspection
and invocation APIs for a vAPI method; it is implemented by
API providers.| Modifier and Type | Method and Description |
|---|---|
MethodDefinition |
getDefinition()
Returns the definition for this method.
|
MethodIdentifier |
getIdentifier()
Returns the identifier for this method.
|
DataDefinition |
getInputDefinition()
Returns the data definition for the input of this method.
|
DataDefinition |
getOutputDefinition()
Returns the data definition for the output of this method.
|
void |
invoke(InvocationContext ctx,
DataValue input,
AsyncHandle<MethodResult> asyncHandle)
Invokes a method and returns the result of that method invocation.
|
MethodIdentifier getIdentifier()
MethodDefinition getDefinition()
DataDefinition getInputDefinition()
DataDefinition getOutputDefinition()
void invoke(InvocationContext ctx, DataValue input, AsyncHandle<MethodResult> asyncHandle)
ctx - invocation context for method invocationinput - input data valueasyncHandle - handle used to return result or errorCopyright © 2022. All rights reserved.