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

Method getInserter

storm-client/src/jvm/org/apache/storm/utils/JCQueue.java:160–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 private Inserter getInserter() {
161 Inserter inserter;
162 if (producerBatchSz > 1) {
163 inserter = thdLocalBatcher.get();
164 if (inserter == null) {
165 BatchInserter b = new BatchInserter(this, producerBatchSz);
166 inserter = b;
167 thdLocalBatcher.set(b);
168 }
169 } else {
170 inserter = directInserter;
171 }
172 return inserter;
173 }
174
175 /**
176 * Blocking call. Retries till it can successfully publish the obj. Can be interrupted via Thread.interrupt().

Callers 4

publishMethod · 0.95
tryPublishMethod · 0.95
flushMethod · 0.95
tryFlushMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected