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

Method getStreamCount

libminifi/src/core/ContentRepository.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45uint32_t ContentRepository::getStreamCount(const minifi::ResourceClaim &streamId) {
46 std::lock_guard<std::mutex> lock(count_map_mutex_);
47 auto cnt = count_map_.find(streamId.getContentFullPath());
48 if (cnt != count_map_.end()) {
49 return cnt->second;
50 } else {
51 return 0;
52 }
53}
54
55void ContentRepository::incrementStreamCount(const minifi::ResourceClaim &streamId) {
56 std::lock_guard<std::mutex> lock(count_map_mutex_);

Calls 3

findMethod · 0.45
getContentFullPathMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected