Package cz.xtf.core.waiting.failfast
Class WatchedResourcesSupplier<X>
- java.lang.Object
-
- cz.xtf.core.waiting.failfast.WatchedResourcesSupplier<X>
-
- All Implemented Interfaces:
FailFastCheck
public class WatchedResourcesSupplier<X> extends Object implements FailFastCheck
Generic class forFailFastCheckso that a builder can build it easily.
-
-
Method Detail
-
hasFailed
public boolean hasFailed()
- Specified by:
hasFailedin interfaceFailFastCheck- Returns:
- true if there is some error and waiter can fail immediately
-
reason
public String reason()
- Specified by:
reasonin interfaceFailFastCheck- Returns:
- reason why
FailFastCheck.hasFailed()have returnedtrue
-
-