Class MetadataExtracterLimits
- java.lang.Object
-
- org.alfresco.repo.content.metadata.MetadataExtracterLimits
-
@AlfrescoPublicApi public class MetadataExtracterLimits extends java.lang.ObjectRepresents 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 Summary
Constructors Constructor Description MetadataExtracterLimits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxConcurrentExtractionsCount()Gets the maximum count of allowed concurrent extractionsdoublegetMaxDocumentSizeMB()Gets the maximum size(MB) allowed for a transformationlonggetTimeoutMs()Gets the time in milliseconds after which the metadata extracter will be stopped.voidsetMaxConcurrentExtractionsCount(int maxConcurrentExtractionsCount)Sets the maximum number of allowed concurrent extractionsvoidsetMaxDocumentSizeMB(double maxDocumentSizeMB)Sets the maximum size(MB) allowed for a transformationvoidsetTimeoutMs(long timeoutMs)Sets the time in milliseconds after which the metadata extracter will be stopped.
-
-
-
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
-
-