public void commit(){
  if (durableQueues) {
    for (    File file : goodSet) {
      if (!file.renameTo(new File(file.getPath() + ".good"))) {
        log.error("File rename failed: file=" + file + " (good)");
      }
    }
  }
  failSet.clear();
  goodSet.clear();
}

public void commit ( ) { if ( durableQueues ) { for ( File file : goodSet ) { if ( ! file . renameTo ( new File ( file . getPath ( ) + ".good" ) ) ) { log . error ( "File rename failed: file=" + file + " (good)" ) ; } } } failSet . clear ( ) ; goodSet . clear ( ) ; }
hook used to support durable queues pattern when the rename happens only once we actually go through a commit .
