private boolean isComplete() { return messageCountsByFlowFile.keySet().stream() .allMatch(flowFile -> isComplete(flowFile)); }
void awaitCompletion(final long millis) throws InterruptedException, TimeoutException { final long startTime = System.nanoTime(); final long maxTime = startTime + TimeUnit.MILLISECONDS.toNanos(millis); while (System.nanoTime() < maxTime) { synchronized (progressMutex) { if (isComplete()) { return; } progressMutex.wait(millis); } } throw new TimeoutException(); }
private boolean isComplete() { return messageCountsByFlowFile.keySet().stream() .allMatch(flowFile -> isComplete(flowFile)); }
private boolean isComplete() { return messageCountsByFlowFile.keySet().stream() .allMatch(flowFile -> isComplete(flowFile)); }
private boolean isComplete() { return messageCountsByFlowFile.keySet().stream() .allMatch(flowFile -> isComplete(flowFile)); }
private boolean isComplete() { return messageCountsByFlowFile.keySet().stream() .allMatch(flowFile -> isComplete(flowFile)); }
void awaitCompletion(final long millis) throws InterruptedException, TimeoutException { final long startTime = System.nanoTime(); final long maxTime = startTime + TimeUnit.MILLISECONDS.toNanos(millis); while (System.nanoTime() < maxTime) { synchronized (progressMutex) { if (isComplete()) { return; } progressMutex.wait(millis); } } throw new TimeoutException(); }
void awaitCompletion(final long millis) throws InterruptedException, TimeoutException { final long startTime = System.nanoTime(); final long maxTime = startTime + TimeUnit.MILLISECONDS.toNanos(millis); while (System.nanoTime() < maxTime) { synchronized (progressMutex) { if (isComplete()) { return; } progressMutex.wait(millis); } } throw new TimeoutException(); }
void awaitCompletion(final long millis) throws InterruptedException, TimeoutException { final long startTime = System.nanoTime(); final long maxTime = startTime + TimeUnit.MILLISECONDS.toNanos(millis); while (System.nanoTime() < maxTime) { synchronized (progressMutex) { if (isComplete()) { return; } progressMutex.wait(millis); } } throw new TimeoutException(); }
void awaitCompletion(final long millis) throws InterruptedException, TimeoutException { final long startTime = System.nanoTime(); final long maxTime = startTime + TimeUnit.MILLISECONDS.toNanos(millis); while (System.nanoTime() < maxTime) { synchronized (progressMutex) { if (isComplete()) { return; } progressMutex.wait(millis); } } throw new TimeoutException(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
void awaitCompletion(final long millis) throws InterruptedException, TimeoutException { final long startTime = System.nanoTime(); final long maxTime = startTime + TimeUnit.MILLISECONDS.toNanos(millis); while (System.nanoTime() < maxTime) { synchronized (progressMutex) { if (isComplete()) { return; } progressMutex.wait(millis); } } throw new TimeoutException(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }
public PublishResult failOutstanding(final Exception exception) { messageCountsByFlowFile.keySet().stream() .filter(ff -> !isComplete(ff)) .filter(ff -> !failures.containsKey(ff)) .forEach(ff -> failures.put(ff, exception)); return createPublishResult(); }