Method Summary |
|
public Timeouts | cloneThis() Creates a copy of the current timeouts set. |
public boolean | contains(String name) Checks if timeout has already been defined in this timeout instance.
Parameters: name - Timeout name. |
public static boolean | containsDefault(String name) Check that default timeout value was defined.
Parameters: name - Timeout name. |
public Timeout | create(String name) Creates Timeout new object by name and getTimeout(name) value.
Parameters: name - Timeout name. |
public Timeout | createDelta() Create timeout for "Timeouts.DeltaTimeout" name. |
public void | eSleep(String name) Sleeps for the "name" timeout value. |
public static long | getDefault(String name) Gets default timeout value.
Parameters: name - Timeout name. |
public long | getDeltaTimeout() Gets "Timeouts.DeltaTimeout" timeout value. |
public long | getTimeout(String name) Gets timeout value.
It timeout was not defined in this instance,
returns default timeout value.
Parameters: name - Timeout name. |
public static void | initDefault(String name, long newValue) Sets default timeout value if it was not set before. |
public long | initTimeout(String name, long newValue) Sets timeout value if it was not set before.
Parameters: name - Timeout name. Parameters: newValue - Timeout value. |
public void | load(InputStream stream) Loads timeouts values. |
public void | load(String fileName) Loads timeouts values from file. |
public void | load() Loads timeouts values. |
public void | loadDebugTimeouts() Loads debug timeouts values. |
public void | loadDefaults(InputStream stream) Loads default timeouts values. |
public void | loadDefaults(String fileName) Loads default timeouts values from file. |
public void | loadDefaults() Loads default timeouts values. |
public void | print(PrintWriter pw) Prins all defined timeouts. |
public void | print(PrintStream ps) Prins all defined timeouts. |
public static void | setDefault(String name, long newValue) Stores default timeout value. |
public long | setTimeout(String name, long newValue) Sets new timeout value.
Parameters: name - Timeout name. Parameters: newValue - Timeout value. |
public void | sleep(String name) Sleeps for the "name" timeout value. |