Class MultiplePingExecutionStrategy
- java.lang.Object
-
- org.opennms.netmgt.icmp.proxy.strategy.MultiplePingExecutionStrategy
-
- All Implemented Interfaces:
ExecutionStrategy
public class MultiplePingExecutionStrategy extends java.lang.Object implements ExecutionStrategy
TheMultiplePingExecutionStrategy
allows the execution of more than 1 pings with the same configuration. As multiple pings need to be cancelled, theCompletableFuture
is encapsulated with a single Thread.
-
-
Constructor Summary
Constructors Constructor Description MultiplePingExecutionStrategy(RpcClient<PingRequestDTO,PingResponseDTO> client, int numberOfRequests, PingRequestBuilder.Callback callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<PingSummary>
execute(PingRequestDTO requestDTO)
-
-
-
Constructor Detail
-
MultiplePingExecutionStrategy
public MultiplePingExecutionStrategy(RpcClient<PingRequestDTO,PingResponseDTO> client, int numberOfRequests, PingRequestBuilder.Callback callback)
-
-
Method Detail
-
execute
public java.util.concurrent.CompletableFuture<PingSummary> execute(PingRequestDTO requestDTO)
- Specified by:
execute
in interfaceExecutionStrategy
-
-