Class MetadataExtracterLimits


  • @AlfrescoPublicApi
    public class MetadataExtracterLimits
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMaxConcurrentExtractionsCount()
      Gets the maximum count of allowed concurrent extractions
      double getMaxDocumentSizeMB()
      Gets the maximum size(MB) allowed for a transformation
      long getTimeoutMs()
      Gets the time in milliseconds after which the metadata extracter will be stopped.
      void setMaxConcurrentExtractionsCount​(int maxConcurrentExtractionsCount)
      Sets the maximum number of allowed concurrent extractions
      void setMaxDocumentSizeMB​(double maxDocumentSizeMB)
      Sets the maximum size(MB) allowed for a transformation
      void setTimeoutMs​(long timeoutMs)
      Sets the time in milliseconds after which the metadata extracter will be stopped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetadataExtracterLimits

        public MetadataExtracterLimits()
    • Method Detail

      • 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