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

Method isFull

libminifi/src/Connection.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool Connection::isFull() {
121 std::lock_guard<std::mutex> lock(mutex_);
122
123 if (max_queue_size_ <= 0 && max_data_queue_size_ <= 0)
124 // No back pressure setting
125 return false;
126
127 if (max_queue_size_ > 0 && queue_.size() >= max_queue_size_)
128 return true;
129
130 if (max_data_queue_size_ > 0 && queued_data_size_ >= max_data_queue_size_)
131 return true;
132
133 return false;
134}
135
136void Connection::put(const std::shared_ptr<core::FlowFile>& flow) {
137 if (drop_empty_ && flow->getSize() == 0) {

Callers 6

commitMethod · 0.45
sendMethod · 0.45
flowFilesOutGoingFullMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected