private class DistributeLoad.NextAvailableStrategy extends Object implements DistributeLoad.DistributionStrategy
Modifier and Type | Field and Description |
---|---|
private AtomicLong |
counter |
Modifier | Constructor and Description |
---|---|
private |
NextAvailableStrategy() |
Modifier and Type | Method and Description |
---|---|
Relationship |
mapToRelationship(ProcessContext context,
FlowFile flowFile) |
boolean |
requiresAllDestinationsAvailable() |
private final AtomicLong counter
public Relationship mapToRelationship(ProcessContext context, FlowFile flowFile)
mapToRelationship
in interface DistributeLoad.DistributionStrategy
context
- contextflowFile
- flowFilenull
if the needed relationships are not available to accept filespublic boolean requiresAllDestinationsAvailable()
requiresAllDestinationsAvailable
in interface DistributeLoad.DistributionStrategy
Copyright © 2020 Apache NiFi Project. All rights reserved.