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 voidhandleError(InetAddress address, EchoPacket request, Throwable t)handleErrorvoidhandleResponse(InetAddress address, EchoPacket response)handleResponsevoidhandleTimeout(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:PingResponseCallbackhandleResponse
- Specified by:
handleResponsein interfacePingResponseCallback- Parameters:
address- aInetAddressobject.response- aEchoPacketobject.
-
handleTimeout
public void handleTimeout(InetAddress address, EchoPacket request)
Description copied from interface:PingResponseCallbackhandleTimeout
- Specified by:
handleTimeoutin interfacePingResponseCallback- Parameters:
address- aInetAddressobject.request- TODO
-
handleError
public void handleError(InetAddress address, EchoPacket request, Throwable t)
Description copied from interface:PingResponseCallbackhandleError
- Specified by:
handleErrorin interfacePingResponseCallback- Parameters:
address- aInetAddressobject.request- aEchoPacketobject.t- aThrowableobject.
-
-