@Component(value="tapirImplicitWaitService") @Scope(scopeName="thread", proxyMode=INTERFACES) public class ImplicitWaitServiceImpl extends Object implements ImplicitWaitService
ImplicitWaitService
.Constructor and Description |
---|
ImplicitWaitServiceImpl() |
Modifier and Type | Method and Description |
---|---|
<T> T |
executeWithDefaultImplicitWaitTime(Supplier<T> supplier)
Executes the given supplier with configured default implicit wait time.
|
<T> T |
executeWithoutWaiting(Supplier<T> supplier)
Executes the given supplier without waiting implicitly.
|
<T> T |
executeWithTimeout(long timeoutInMillis,
Supplier<T> supplier)
Executes the given supplier with the given implicit wait time (in ms).
|
void |
initialize() |
@PostConstruct public void initialize()
public <T> T executeWithoutWaiting(Supplier<T> supplier)
ImplicitWaitService
executeWithoutWaiting
in interface ImplicitWaitService
T
- The return type of the given suppliersupplier
- The code to be executedpublic <T> T executeWithDefaultImplicitWaitTime(Supplier<T> supplier)
ImplicitWaitService
executeWithDefaultImplicitWaitTime
in interface ImplicitWaitService
T
- The return type of the given suppliersupplier
- The code to be executedpublic <T> T executeWithTimeout(long timeoutInMillis, Supplier<T> supplier)
ImplicitWaitService
executeWithTimeout
in interface ImplicitWaitService
T
- The return type of the given suppliertimeoutInMillis
- the implicit wait time (in ms)supplier
- The code to be executedCopyright © 2018–2020 b+m Informatik AG. All rights reserved.