public class Wait extends Object
| Constructor and Description |
|---|
Wait() |
| Modifier and Type | Method and Description |
|---|---|
static void |
forPortToBeFree(int port)
Waits for a given port to be free
|
static void |
forPortToBeUsed(int port)
Waits for a given port to become used.
|
static void |
until(Callable<Boolean> condition)
Blocks until the given condition evaluates to true.
|
static void |
until(Callable<Boolean> condition,
long timeout,
TimeUnit timeUnit)
Blocks until the given condition evaluates to true.
|
static void |
until(Callable<Boolean> condition,
long timeout,
TimeUnit timeUnit,
long frequency)
Blocks until the given condition evaluates to true.
|
public static void until(Callable<Boolean> condition)
condition - the condition to wait forpublic static void until(Callable<Boolean> condition, long timeout, TimeUnit timeUnit)
condition - the condition to wait fortimeout - the timeout valuetimeUnit - the unit for the timeoutpublic static void until(Callable<Boolean> condition, long timeout, TimeUnit timeUnit, long frequency)
condition - the condition to wait fortimeout - the timeout valuetimeUnit - the unit for the timeoutfrequency - the frequency of the condition's evaluation in millisecondspublic static void forPortToBeUsed(int port)
port - public static void forPortToBeFree(int port)
port - Copyright © 2015–2017 Red Hat, Inc.. All rights reserved.