public void incrementSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.computeIfAbsent(flowFile, ff -> new Counts()); counter.incrementSentCount(); }
public int getAcknowledgedCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getAcknowledgedCount(); }
public int getSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getSentCount(); }
public int getAcknowledgedCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getAcknowledgedCount(); }
public int getSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getSentCount(); }
public int getSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getSentCount(); }
public int getAcknowledgedCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getAcknowledgedCount(); }
public void incrementSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.computeIfAbsent(flowFile, ff -> new Counts()); counter.incrementSentCount(); }
public int getAcknowledgedCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getAcknowledgedCount(); }
public int getAcknowledgedCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getAcknowledgedCount(); }
public void incrementSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.computeIfAbsent(flowFile, ff -> new Counts()); counter.incrementSentCount(); }
public void incrementSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.computeIfAbsent(flowFile, ff -> new Counts()); counter.incrementSentCount(); }
public void incrementSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.computeIfAbsent(flowFile, ff -> new Counts()); counter.incrementSentCount(); }
/** * This method guarantees that the specified FlowFile to be transferred to * 'success' relationship even if it did not derive any Kafka message. */ public void trackEmpty(final FlowFile flowFile) { messageCountsByFlowFile.putIfAbsent(flowFile, new Counts()); }
private boolean isComplete(final FlowFile flowFile) { final Counts counts = messageCountsByFlowFile.get(flowFile); if (counts.getAcknowledgedCount() == counts.getSentCount()) { // all messages received successfully. return true; } if (failures.containsKey(flowFile)) { // FlowFile failed so is complete return true; } return false; }
private boolean isComplete(final FlowFile flowFile) { final Counts counts = messageCountsByFlowFile.get(flowFile); if (counts.getAcknowledgedCount() == counts.getSentCount()) { // all messages received successfully. return true; } if (failures.containsKey(flowFile)) { // FlowFile failed so is complete return true; } return false; }
public void incrementAcknowledgedCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.computeIfAbsent(flowFile, ff -> new Counts()); counter.incrementAcknowledgedCount(); synchronized (progressMutex) { progressMutex.notify(); } }
/** * This method guarantees that the specified FlowFile to be transferred to * 'success' relationship even if it did not derive any Kafka message. */ public void trackEmpty(final FlowFile flowFile) { messageCountsByFlowFile.putIfAbsent(flowFile, new Counts()); }
public int getSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getSentCount(); }
public int getSentCount(final FlowFile flowFile) { final Counts counter = messageCountsByFlowFile.get(flowFile); return (counter == null) ? 0 : counter.getSentCount(); }