Top Description Constructors Methods
org.glassfish.tyrus.spi

public abstract Class CompletionHandler<E>

extends Object
Class Inheritance
Type Parameters
<E>
result type.

A callback to notify about asynchronous I/O operations status updates.
Author
Alexey Stashok

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
cancelled()

The operation was cancelled.

public void
completed(final E
the operation result.
result
)

The operation was completed.

public void
failed(final Throwable
error, which occurred during operation execution.
throwable
)

The operation was failed.

public void
updated(final E
the current result.
result
)

The callback method may be called, when there is some progress in operation execution, but it is still not completed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CompletionHandlerback to summary
public CompletionHandler()

Method Detail

cancelledback to summary
public void cancelled()

The operation was cancelled.

completedback to summary
public void completed(final E result)

The operation was completed.

Parameters
result:E

the operation result.

failedback to summary
public void failed(final Throwable throwable)

The operation was failed.

Parameters
throwable:Throwable

error, which occurred during operation execution.

updatedback to summary
public void updated(final E result)

The callback method may be called, when there is some progress in operation execution, but it is still not completed.

Parameters
result:E

the current result.