public interface AmiAsyncMethodInterface extends AmiMethodInterface
AmiAsyncMethodInterface
complements the
AmiMethodInterface
in that asynchronous method is used for
providing, or publishing, (as opposed to invocation request/reply) for
data that are available in a non-deterministic fashion.
Therefore, one can think of the AMI asynchronous method as a publishing source.
Modifier and Type | Method and Description |
---|---|
void |
onStart(AmiMethodContext context,
AmiParameterList args)
This method is invoked by the AMI Java API when an interest, or
subscription, on this asynchronous method arrives.
|
void |
onStop(AmiMethodContext context,
AmiParameterList args)
This method is invoked by the AMI Java API when the interest on this
asynchronous method no longer exists.
|
getArguments, getHelp, getIndexName, getName, getReturns, getSession, getTimeout, getType, onInvoke, setIndexName, setIndexName, setSession
void onStart(AmiMethodContext context, AmiParameterList args) throws java.lang.Exception
context
- The context associated with the subscription.args
- The start subscription input arguments.java.lang.Exception
- void onStop(AmiMethodContext context, AmiParameterList args) throws java.lang.Exception
context
- The context associated with the subscription.args
- The stop subscription input arguments.java.lang.Exception
Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.