Version: 5
restore

Contents

Method

Stagger

ModuleAgent
LibraryCore
Action

Delay for a random amount of time up to a limit.

ParametersLimit  (int): The number of seconds for which to to pause. If the value is less than 1 the default from the agent configuration file is used.
Return values

StaggerTime  (int): The actual delay in milliseconds.

Example
 Agent.Stagger(Limit:30);
Platforms
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris Sparc
  • Android
Notes

Useful for ensuring that multiple agents do not all execute following instructions at the same time, to prevent overloading a shared resource.