|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis2.client.async.Callback
This Class is the abstract representation of a callback and is called at the completion of an asynchronous invocation.
| Constructor Summary | |
Callback()
|
|
| Method Summary | |
boolean |
isComplete()
Returns true if the asynchronous operation has completed, false otherwise. |
abstract void |
onComplete(AsyncResult result)
This method is invoked by Axis Engine once the asynchronous operation has completed sucessfully. |
abstract void |
reportError(java.lang.Exception e)
This method is called by Axis Engine if the asynchronous operation fails. |
void |
setComplete(boolean complete)
Method setComplete |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Callback()
| Method Detail |
public abstract void onComplete(AsyncResult result)
result - public abstract void reportError(java.lang.Exception e)
e - public boolean isComplete()
while(!callback.isComplete()){
Thread.sleep(1000);
}
do whatever u need to do
public void setComplete(boolean complete)
complete -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||