public void flush() throws IOException { segment.lastModified = System.currentTimeMillis(); writer.flush(); hunk.bytes = writer.getBytes(); ofy().save().entity(segment); save(hunk); ofy().flush(); PendingFutures.completeAllPendingFutures(); /* nothing to do */ } /*
/** * Clear memcache and Objectify session cache. */ private void clearAllCaches() { memcache.clearAll(); ObjectifyService.ofy().flush(); ObjectifyService.ofy().clear(); } }