Package org.opennms.netmgt.icmp.proxy
Class PingResultTracker
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<PingResponseDTO>
-
- org.opennms.netmgt.icmp.proxy.PingResultTracker
-
- All Implemented Interfaces:
CompletionStage<PingResponseDTO>
,Future<PingResponseDTO>
,PingResponseCallback
public class PingResultTracker extends CompletableFuture<PingResponseDTO> implements PingResponseCallback
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask
-
-
Constructor Summary
Constructors Constructor Description PingResultTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleError(InetAddress address, EchoPacket request, Throwable t)
handleErrorvoid
handleResponse(InetAddress address, EchoPacket response)
handleResponsevoid
handleTimeout(InetAddress address, EchoPacket request)
handleTimeout-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
-
-
-
Method Detail
-
handleResponse
public void handleResponse(InetAddress address, EchoPacket response)
Description copied from interface:PingResponseCallback
handleResponse
- Specified by:
handleResponse
in interfacePingResponseCallback
- Parameters:
address
- aInetAddress
object.response
- aEchoPacket
object.
-
handleTimeout
public void handleTimeout(InetAddress address, EchoPacket request)
Description copied from interface:PingResponseCallback
handleTimeout
- Specified by:
handleTimeout
in interfacePingResponseCallback
- Parameters:
address
- aInetAddress
object.request
- TODO
-
handleError
public void handleError(InetAddress address, EchoPacket request, Throwable t)
Description copied from interface:PingResponseCallback
handleError
- Specified by:
handleError
in interfacePingResponseCallback
- Parameters:
address
- aInetAddress
object.request
- aEchoPacket
object.t
- aThrowable
object.
-
-