public abstract class Callback extends Object
setComplete(boolean)
, and either onComplete(AsyncResult)
or onError(Exception)
when the operation is completed.Constructor and Description |
---|
Callback()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
public abstract void onComplete(AsyncResult result)
result
- public abstract void onError(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
- Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.