public class DefaultNetworkTestOperations extends Object implements NetworkTestOperations
| Constructor and Description |
|---|
DefaultNetworkTestOperations() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNetworkLatencyForResponses(Duration delay) |
void |
removeNetworkLatencyForResponses() |
<T> T |
withNetworkLatency(Duration delay,
Callable<T> callable) |
void |
withNetworkLatency(Duration delay,
ThrowingRunnable runnable) |
public void addNetworkLatencyForResponses(Duration delay)
addNetworkLatencyForResponses in interface NetworkTestOperationspublic void removeNetworkLatencyForResponses()
removeNetworkLatencyForResponses in interface NetworkTestOperationspublic void withNetworkLatency(Duration delay, ThrowingRunnable runnable)
withNetworkLatency in interface NetworkTestOperationspublic <T> T withNetworkLatency(Duration delay, Callable<T> callable)
withNetworkLatency in interface NetworkTestOperationsCopyright © 2022. All rights reserved.