setInterval Member Function

Allows the application to dynamically change the aggregation interval of the Listener during application execution.

Important: The aggregation interval can also be specified by various other sources. For more information, see Configuring the Aggregation Interval.

Syntax

void setInterval(unsigned int interval);

Parameters

interval
[in] Required unsigned int, which specifies the new value (in milliseconds) to assign as the aggregation interval. Values of less than 100 milliseconds are ignored.

Example

Listener *listener = new Listener("sampleApp", "4.0", NULL, false);
listener->setInterval(100000);
...

See Also