Package alluxio.util
Class WaitForOptions
- java.lang.Object
-
- alluxio.util.WaitForOptions
-
public final class WaitForOptions extends java.lang.Object
Options for theCommonUtils.waitFor(java.lang.String, java.util.function.Supplier<java.lang.Boolean>)
method.
-
-
Field Summary
Fields Modifier and Type Field Description static int
NEVER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WaitForOptions
defaults()
boolean
equals(java.lang.Object o)
int
getInterval()
int
getTimeoutMs()
int
hashCode()
WaitForOptions
setInterval(int intervalMs)
WaitForOptions
setTimeoutMs(int timeoutMs)
java.lang.String
toString()
-
-
-
Field Detail
-
NEVER
public static final int NEVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
defaults
public static WaitForOptions defaults()
- Returns:
- the default instance of
WaitForOptions
-
getInterval
public int getInterval()
- Returns:
- the internal
-
getTimeoutMs
public int getTimeoutMs()
- Returns:
- the timeout
-
setInterval
public WaitForOptions setInterval(int intervalMs)
- Parameters:
intervalMs
- the interval to use (in milliseconds)- Returns:
- the updated options object
-
setTimeoutMs
public WaitForOptions setTimeoutMs(int timeoutMs)
- Parameters:
timeoutMs
- the timeout to use (in milliseconds)- Returns:
- the updated options object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-