Class MetadataExtracterLimits

java.lang.Object
org.alfresco.repo.content.metadata.MetadataExtracterLimits

@AlfrescoPublicApi public class MetadataExtracterLimits extends Object
Represents maximum values (that result in exceptions if exceeded) or limits on values (that result in EOF (End Of File) being returned early). The current options are elapsed time, document size and concurrent extractions limit.
Author:
Ray Gauss II
  • Constructor Details

    • MetadataExtracterLimits

      public MetadataExtracterLimits()
  • Method Details

    • getTimeoutMs

      public long getTimeoutMs()
      Gets the time in milliseconds after which the metadata extracter will be stopped.
      Returns:
      the timeout
    • setTimeoutMs

      public void setTimeoutMs(long timeoutMs)
      Sets the time in milliseconds after which the metadata extracter will be stopped.
      Parameters:
      timeoutMs - the timeout
    • getMaxDocumentSizeMB

      public double getMaxDocumentSizeMB()
      Gets the maximum size(MB) allowed for a transformation
      Returns:
      maximum size
    • setMaxDocumentSizeMB

      public void setMaxDocumentSizeMB(double maxDocumentSizeMB)
      Sets the maximum size(MB) allowed for a transformation
      Parameters:
      maxDocumentSizeMB -
    • setMaxConcurrentExtractionsCount

      public void setMaxConcurrentExtractionsCount(int maxConcurrentExtractionsCount)
      Sets the maximum number of allowed concurrent extractions
      Parameters:
      maxConcurrentExtractionsCount -
    • getMaxConcurrentExtractionsCount

      public int getMaxConcurrentExtractionsCount()
      Gets the maximum count of allowed concurrent extractions
      Returns:
      maximum count