public void addCallback(Callback callback){
  if (!callbacks.contains(callback)) {
    callbacks.add(callback);
  }
}

public void addCallback ( Callback callback ) { if ( ! callbacks . contains ( callback ) ) { callbacks . add ( callback ) ; } }
adds a batch - level callback which will be called when the entire batch has finished executing .
