| java.lang.Object org.netbeans.modules.visualweb.gravy.Repeater
Repeater | public class Repeater (Code) | | This class is intended to be used as a base for anonymous classes
aimed on several repeating of some action which is possible to failed
from first (second, third..) attempt
|
Constructor Summary | |
public | Repeater() | public | Repeater(int repeatCount) | public | Repeater(int repeatCount, long repeatTimeout) |
Method Summary | |
public void | action() Action to perform. | public void | tryAction() | public void | tryAction(int repeatCount) | public void | tryAction(int repeatCount, long repeatTimeout) Trys to perform action() several attempts, if any errors are
thrown, tryis to repeat it until specified repeatCount number of
attempts is reached. |
Repeater | public Repeater()(Code) | | Creates a new instance of Repeater
Uses default of 3 attempts with 2 sec timeout
|
Repeater | public Repeater(int repeatCount)(Code) | | Creates a new instance of Repeater
Uses default 2 sec timeout
Parameters: repeatCount - Number of attempts to try |
Repeater | public Repeater(int repeatCount, long repeatTimeout)(Code) | | Creates a new instance of Repeater
Parameters: repeatCount - Number of attempts to try Parameters: repeatTimout - Timeout between attempts |
action | public void action()(Code) | | Action to perform. Implement it in your anonymous class
|
tryAction | public void tryAction()(Code) | | Trys to perform action() several attempts, if any errors are
thrown, tryis to repeat it until specified repeat number of
attempts is reached
|
tryAction | public void tryAction(int repeatCount)(Code) | | Trys to perform action() several attempts, if any errors are
thrown, tryis to repeat it until specified repeatCount number of
attempts is reached
Parameters: repeatCount - Number of attempts to perform |
tryAction | public void tryAction(int repeatCount, long repeatTimeout)(Code) | | Trys to perform action() several attempts, if any errors are
thrown, tryis to repeat it until specified repeatCount number of
attempts is reached. Uses specified repeatTimeout between attempts
Parameters: repeatCount - Number of attempts to perform Parameters: repeatTimeout - Timeout between attempts |
|
|