Package com.yahoo.jdisc.test
Class NonWorkingCompletionHandler
- java.lang.Object
-
- com.yahoo.jdisc.test.NonWorkingCompletionHandler
-
- All Implemented Interfaces:
CompletionHandler
public final class NonWorkingCompletionHandler extends java.lang.Object implements CompletionHandler
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description NonWorkingCompletionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completed()
Invoked when an operation has completed.void
failed(java.lang.Throwable t)
Invoked when an operation fails.
-
-
-
Method Detail
-
completed
public void completed()
Description copied from interface:CompletionHandler
Invoked when an operation has completed. Notice that you MUST call either this orCompletionHandler.failed(Throwable)
to release the internalContainer
reference. Failure to do so will prevent the Container from ever shutting down.- Specified by:
completed
in interfaceCompletionHandler
-
failed
public void failed(java.lang.Throwable t)
Description copied from interface:CompletionHandler
Invoked when an operation fails. Notice that you MUST call either this orCompletionHandler.completed()
to release the internalContainer
reference. Failure to do so will prevent the Container from ever shutting down.- Specified by:
failed
in interfaceCompletionHandler
- Parameters:
t
- The exception to indicate why the I/O operation failed.
-
-