AmiAsyncMethod::onStart()

Method

Declaration

virtual AmiStatus onStart(AmiSubscription * context,
                          AmiParameterListIn * args); 

Purpose

This method is invoked by the AMI C++ API whenever an asynchronous method subscription request is made on this method. This method implements the start actions to be performed by the application on such an event

Remarks

This method is optional. The default is noop if the application chooses not to implement it. In this case, the AMI session will track the pertinent context for the purpose of sending asynchronous data.

Parameters

 

Parameter

Description

context

AMI context associated with the invocation. The context is specific to a subscription request. The lifetime of this context starts at the moment this method is invoked and stops after the AmiAsyncMethod::onStop method returns.

args

Input parameters list from the TIBCO Hawk agent.

See Also

AmiParameterList Class

AmiAsyncMethod::onStop()