Waits for something defined by Waitable interface to be happened.
Timeouts used:
Waiter.TimeDelta - time delta to check actionProduced result.
Waiter.WaitingTime - maximal waiting time
Waiter.AfterWaitingTime - time to sleep after waiting has been finished.
See Also:Timeouts See Also:Waitable author: Alexandre Iline (alexandre.iline@sun.com)
getActionProducedMessage(long timeSpent, Object result) Returns message to be printed when waiting has been successfully finished.
Parameters: timeSpent - time from waiting start (milliseconds) Parameters: result - result of Waitable.actionproduced method.
waitAction(Object waitableObject) Waits for not null result of actionProduced method of Waitable implementation passed into constructor.
Parameters: waitableObject - Object to be passed into actionProduced method.
Returns message to be printed when waiting has been successfully finished.
Parameters: timeSpent - time from waiting start (milliseconds) Parameters: result - result of Waitable.actionproduced method. a message.
Waits for not null result of actionProduced method of Waitable implementation passed into constructor.
Parameters: waitableObject - Object to be passed into actionProduced method. non null result of action. throws: TimeoutExpiredException - exception: InterruptedException -