AmiAsyncMethod()

Constructor

Declaration

AmiAsyncMethod(
   AmiSession * session,
   const char * name, 
   const char * help, 
   ami_MethodType type,
   int inTimeout); 

Purpose

Constructs an instance of AmiAsyncMethod class.

Parameters

 

Parameter

Description

session

AMI session object.

name

Name of the method.

help

Help text for the method.

type

Type of method. Must be one of AMI_METHOD_INFO, AMI_METHOD_ACTION or AMI_METHOD_ACTION_INFO.

AMI_METHOD_INFO methods collect data. Data sources in rulebases and method subscriptions in the TIBCO Hawk Console use this type of method only.

AMI_METHOD_ACTION methods affect the application’s behavior in some way. They can be invoked in the TIBCO Hawk Console through interacting with one agent or through a network action. Action methods can also be invoked as an action in a rulebase.

AMI_METHOD_ACTION_INFO methods both make a change to the application and return data. They can be invoked in the TIBCO Hawk Console through interacting with one agent or through a network action.

inTimeout

The timeout interval of this AMI method. The default is 10000 milliseconds(10 seconds).