|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.client.async.Callback
public abstract class Callback
Base class for asynchronous client callback handler. The application code
needs to create an instance of this class (actually an instance of a
subclass, since this base class cannot be used directly) and pass it to the
generated startXXX client stub method when initiating an asynchronous
operation. The Axis2 code then calls the appropriate methods of this class
setComplete(boolean)
, and either onComplete(AsyncResult)
or onError(Exception)
when the operation is completed.
Constructor Summary | |
---|---|
Callback()
Deprecated. |
Method Summary | |
---|---|
boolean |
isComplete()
Deprecated. Returns true if the asynchronous operation has completed, false otherwise. |
abstract void |
onComplete(AsyncResult result)
Deprecated. Method is invoked by Axis2 once the asynchronous operation has completed successfully. |
abstract void |
onError(java.lang.Exception e)
Deprecated. Method invoked by Axis2 if the asynchronous operation fails. |
void |
setComplete(boolean complete)
Deprecated. Method invoked by Axis2 to set the completion state of the operation. |
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 onError(java.lang.Exception e)
e
- public boolean isComplete()
while(!callback.isComplete()){
Thread.sleep(1000);
}
do whatever u need to do
public final void setComplete(boolean complete)
complete
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |