public class ProgressiveTimeoutGenerator extends Object
| Constructor and Description |
|---|
ProgressiveTimeoutGenerator(long timeout)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Determines if there are more waiting steps for which a timeout value can be fetched
|
long |
next()
Returns the next timeout value based on the time fractions set.
|
void |
setFractions(float[] fractions)
Sets time fractions for each step.
|
public ProgressiveTimeoutGenerator(long timeout)
timeout - The total time to waitpublic void setFractions(float[] fractions)
throws Exception
public long next()
public boolean hasNext()
next(), false otherwiseCopyright © 2014. All Rights Reserved.