|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.utils.CompletionHandlerAdapter<A,B>
public class CompletionHandlerAdapter<A,B>
| Constructor Summary | |
|---|---|
CompletionHandlerAdapter(FutureImpl<A> future)
|
|
CompletionHandlerAdapter(FutureImpl<A> future,
CompletionHandler<A> completionHandler)
|
|
CompletionHandlerAdapter(FutureImpl<A> future,
CompletionHandler<A> completionHandler,
GenericAdapter<B,A> adapter)
|
|
| Method Summary | |
|---|---|
protected A |
adapt(B result)
|
void |
cancelled()
The operation was cancelled. |
void |
completed(B result)
The operation was completed. |
void |
failed(java.lang.Throwable throwable)
The operation was failed. |
void |
updated(B result)
The callback method may be called, when there is some progress in operation execution, but it is still not completed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompletionHandlerAdapter(FutureImpl<A> future)
public CompletionHandlerAdapter(FutureImpl<A> future,
CompletionHandler<A> completionHandler)
public CompletionHandlerAdapter(FutureImpl<A> future,
CompletionHandler<A> completionHandler,
GenericAdapter<B,A> adapter)
| Method Detail |
|---|
public void cancelled()
CompletionHandler
cancelled in interface CompletionHandler<B>public void failed(java.lang.Throwable throwable)
CompletionHandler
failed in interface CompletionHandler<B>throwable - error, which occurred during operation executionpublic void completed(B result)
CompletionHandler
completed in interface CompletionHandler<B>result - the operation resultpublic void updated(B result)
CompletionHandler
updated in interface CompletionHandler<B>result - the current resultprotected A adapt(B result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||