- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Dictionary d =
new Hashtable()
Bundle bundle;bundle.getHeaders()
new Properties()
- Smart code suggestions by Codota
}
/** * Handle a pause message * @param msg the message */ private void onPause(Message<Boolean> msg) { Boolean paused = msg.body(); if (paused == null || !paused) { if (this.paused) { log.info("Resuming import"); this.paused = false; for (AsyncFile f : filesBeingImported) { f.resume(); } } } else { if (!this.paused) { log.info("Pausing import"); this.paused = true; for (AsyncFile f : filesBeingImported) { f.pause(); } } } }
progress.setCurrent(bytesWritten.getAndAdd(data.length())); if (out.writeQueueFull()) { file.pause(); out.drainHandler(v -> file.resume());