Package org.glassfish.tyrus.spi
Class CompletionHandler<E>
- java.lang.Object
-
- org.glassfish.tyrus.spi.CompletionHandler<E>
-
- Type Parameters:
E
- result type.
public abstract class CompletionHandler<E> extends java.lang.Object
A callback to notify about asynchronous I/O operations status updates.- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description CompletionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancelled()
The operation was cancelled.void
completed(E result)
The operation was completed.void
failed(java.lang.Throwable throwable)
The operation was failed.void
updated(E result)
The callback method may be called, when there is some progress in operation execution, but it is still not completed.
-
-
-
Method Detail
-
cancelled
public void cancelled()
The operation was cancelled.
-
failed
public void failed(java.lang.Throwable throwable)
The operation was failed.- Parameters:
throwable
- error, which occurred during operation execution.
-
completed
public void completed(E result)
The operation was completed.- Parameters:
result
- the operation result.
-
updated
public void updated(E result)
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.
-
-