/** Persist all pending items. */ public void synchronize() { this.queue.flush(); if (Sender.getInstance() != null) { Sender.getInstance().sendNextFile(); } }