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.ObjectA 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 voidcancelled()The operation was cancelled.voidcompleted(E result)The operation was completed.voidfailed(java.lang.Throwable throwable)The operation was failed.voidupdated(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.
-
-