void notifyComplete(){
synchronized (waitObject) {
    isComplete=true;
    waitObject.notifyAll();
    if (listener != null) {
      listener.onSuccess(this);
    }
  }
}

void notifyComplete ( ) { synchronized ( waitObject ) { isComplete = true ; waitObject . notifyAll ( ) ; if ( listener != null ) { listener . onSuccess ( this ) ; } } }
notify successful completion of the operation
