Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Method

Stagger

ModuleAgent
LibraryCore
Action

Excerpt
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
Code Block
languageperl
 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.