Package org.glassfish.tyrus.spi
Class CompletionHandler<E>
java.lang.Object
org.glassfish.tyrus.spi.CompletionHandler<E>
- Type Parameters:
- E- result type.
A callback to notify about asynchronous I/O operations status updates.
- Author:
- Alexey Stashok
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThe operation was cancelled.voidThe operation was completed.voidThe operation was failed.voidThe callback method may be called, when there is some progress in operation execution, but it is still not completed.
- 
Constructor Details- 
CompletionHandlerpublic CompletionHandler()
 
- 
- 
Method Details- 
cancelledpublic void cancelled()The operation was cancelled.
- 
failedThe operation was failed.- Parameters:
- throwable- error, which occurred during operation execution.
 
- 
completedThe operation was completed.- Parameters:
- result- the operation result.
 
- 
updatedThe callback method may be called, when there is some progress in operation execution, but it is still not completed.- Parameters:
- result- the current result.
 
 
-