|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.Timeout
public class Timeout
Represents one timeout.
Constructor Summary | |
---|---|
Timeout(java.lang.String name,
long value)
Constructor. |
Method Summary | |
---|---|
boolean |
expired()
Checks if timeout has been expired after start() invocation. |
java.lang.String |
getName()
Returns timeout name. |
long |
getValue()
Returns timeout value. |
void |
check()
Throws a TimeoutExpiredException exception if timeout has been expired. |
void |
sleep()
Sleeps for timeout value. |
void |
start()
Starts timeout measuring. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Timeout(java.lang.String name, long value)
name
- Timeout name.value
- Timeout value in milliseconds.Method Detail |
---|
public java.lang.String getName()
public long getValue()
public void sleep()
public void start()
public boolean expired()
public void check()
TimeoutExpiredException
- if timeout has been expired after start() invocation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |