RepeatCommand

public RepeatCommand RepeatCommand(Command command, Integer times)

Parameters

command

the command to run

times

the number of times to run the command. If less than zero, then the command will be run indefinitely.