public static final class WaitForOption.CheckingPeriod extends WaitForOption
WaitForOption.CheckingPeriod, WaitForOption.Timeout| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static WaitForOption.CheckingPeriod |
getOrDefault(WaitForOption... options)
Returns the
CheckingPeriod option specified in options. |
int |
hashCode() |
long |
period()
Returns the checking period.
|
void |
sleep()
Blocks the current thread for the amount of time specified by this object.
|
String |
toString() |
TimeUnit |
unit()
Returns the time unit for
period(). |
checkEvery, timeoutpublic long period()
public void sleep()
throws InterruptedException
InterruptedException - if the current thread was interruptedpublic static WaitForOption.CheckingPeriod getOrDefault(WaitForOption... options)
CheckingPeriod option specified in options. If no
CheckingPeriod could be found among options, the default checking period (500
milliseconds) is used.Copyright © 2016 Google. All rights reserved.