public List<?> flushBatch(){
  List<?> result=null;
  if (operationsBatch.size() > 0) {
    result=doFlush();
    operationsBatch.clear();
    return result;
  }
  return result;
}

public List < ? > flushBatch ( ) { List < ? > result = null ; if ( operationsBatch . size ( ) > 0 ) { result = doFlush ( ) ; operationsBatch . clear ( ) ; return result ; } return result ; }
sends the current list of queued operations to the remote peer .
