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

Method setFailureCallback

nanofi/src/cxx/Plan.cpp:319–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319bool ExecutionPlan::setFailureCallback(std::function<void(flow_file_record*)> onerror_callback) {
320 if (finalized && !failure_handler_) {
321 return false; // Already finalized the flow without failure handler processor
322 }
323 if (!failure_handler_) {
324 failure_handler_ = std::make_shared<FailureHandler>(getContentRepo());
325 }
326 failure_handler_->setCallback(onerror_callback);
327 return true;
328}
329
330bool ExecutionPlan::setFailureStrategy(FailureStrategy start) {
331 if (!failure_handler_) {

Callers 1

add_failure_callbackFunction · 0.80

Calls 1

setCallbackMethod · 0.45

Tested by

no test coverage detected