Class ImmutableExternalResourceDescriptor

java.lang.Object
org.apache.nifi.flow.resource.ImmutableExternalResourceDescriptor
All Implemented Interfaces:
ExternalResourceDescriptor

public class ImmutableExternalResourceDescriptor extends Object implements ExternalResourceDescriptor
  • Field Details

    • location

      private final String location
    • modifiedAt

      private final long modifiedAt
  • Constructor Details

    • ImmutableExternalResourceDescriptor

      public ImmutableExternalResourceDescriptor(String location, long modifiedAt)
  • Method Details

    • getLocation

      public String getLocation()
      Specified by:
      getLocation in interface ExternalResourceDescriptor
      Returns:
      The location of the resource, where the format depends on the actual provider implementation.
    • getLastModified

      public long getLastModified()
      Specified by:
      getLastModified in interface ExternalResourceDescriptor
      Returns:
      Returns the modification time of the original resource file using Unix timestamp format.