MCPcopy Create free account
hub / github.com/apache/storm / flush

Method flush

storm-client/src/jvm/org/apache/storm/utils/JCQueue.java:231–234  ·  view source on GitHub ↗

if(batchSz>1) : Blocking call. Does not return until at least 1 element is drained or Thread.interrupt() is received if(batchSz==1) : NO-OP. Returns immediately. doesnt throw.

()

Source from the content-addressed store, hash-verified

229 * : NO-OP. Returns immediately. doesnt throw.
230 */
231 public void flush() throws InterruptedException {
232 Inserter inserter = getInserter();
233 inserter.flush();
234 }
235
236 /**
237 * if(batchSz>1) : Non-Blocking call. Tries to flush as many as it can. Returns true if flushed at least 1. if(batchSz==1) : This is a

Callers 1

flushLocalMethod · 0.95

Calls 2

getInserterMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected