MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / flowFilesQueued

Method flowFilesQueued

libminifi/src/core/Processor.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211bool Processor::flowFilesQueued() {
212 std::lock_guard<std::mutex> lock(mutex_);
213
214 if (_incomingConnections.size() == 0)
215 return false;
216
217 for (auto &&conn : _incomingConnections) {
218 std::shared_ptr<Connection> connection = std::static_pointer_cast<Connection>(conn);
219 if (connection->getQueueSize() > 0)
220 return true;
221 }
222
223 return false;
224}
225
226bool Processor::flowFilesOutGoingFull() {
227 std::lock_guard<std::mutex> lock(mutex_);

Callers 1

hasWorkToDoMethod · 0.80

Calls 2

sizeMethod · 0.45
getQueueSizeMethod · 0.45

Tested by

no test coverage detected