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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The operation was cancelled.void
The operation was completed.void
The operation was failed.void
The callback method may be called, when there is some progress in operation execution, but it is still not completed.
-
Constructor Details
-
CompletionHandler
public CompletionHandler()
-
-
Method Details
-
cancelled
public void cancelled()The operation was cancelled. -
failed
The operation was failed.- Parameters:
throwable
- error, which occurred during operation execution.
-
completed
The operation was completed.- Parameters:
result
- the operation result.
-
updated
The callback method may be called, when there is some progress in operation execution, but it is still not completed.- Parameters:
result
- the current result.
-