Package org.apache.nifi.flow.resource
Interface ExternalResourceConflictResolutionStrategy
public interface ExternalResourceConflictResolutionStrategy
Might be used by provider service in order to decide if an available resource should be acquired from the external provider.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
shouldBeFetched
(File targetDirectory, ExternalResourceDescriptor available)
-
Method Details
-
shouldBeFetched
- Parameters:
targetDirectory
- The target directory.available
- Descriptor of the available resource.- Returns:
- Returns true if the resource should be fetched from the provider. Returns false otherwise.
-