public class MultiplePingExecutionStrategy extends Object implements ExecutionStrategy
MultiplePingExecutionStrategy allows the execution of more than 1 pings with the same configuration.
As multiple pings need to be cancelled, the CompletableFuture is encapsulated with a single Thread.| Constructor and Description |
|---|
MultiplePingExecutionStrategy(RpcClient<PingRequestDTO,PingResponseDTO> client,
int numberOfRequests,
PingRequestBuilder.Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<PingSummary> |
execute(PingRequestDTO requestDTO) |
public MultiplePingExecutionStrategy(RpcClient<PingRequestDTO,PingResponseDTO> client, int numberOfRequests, PingRequestBuilder.Callback callback)
public CompletableFuture<PingSummary> execute(PingRequestDTO requestDTO)
execute in interface ExecutionStrategyCopyright © 2022. All rights reserved.