public void cleanup(){
  if (cleanupRecords != null) {
    Iterator<Long> iterRecord=cleanupRecords.iterator();
    while (iterRecord.hasNext()) {
      Long record=iterRecord.next();
      if (iterRecord.hasNext()) {
        deleteID(record.longValue());
      }
    }
    cleanupRecords.clear();
    cleanupRecords=null;
  }
}

public void cleanup ( ) { if ( cleanupRecords != null ) { Iterator < Long > iterRecord = cleanupRecords . iterator ( ) ; while ( iterRecord . hasNext ( ) ) { Long record = iterRecord . next ( ) ; if ( iterRecord . hasNext ( ) ) { deleteID ( record . longValue ( ) ) ; } } cleanupRecords . clear ( ) ; cleanupRecords = null ; } }
a method to cleanup old records after started
