org.alfresco.repo.content.metadata
Class MetadataExtracterLimits
org.alfresco.repo.content.metadata.MetadataExtracterLimits
@org.alfresco.api.AlfrescoPublicApi
public class MetadataExtracterLimits
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 |
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 |
MetadataExtracterLimits
public MetadataExtracterLimits()
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
setMaxConcurrentExtractionsCount
public void setMaxConcurrentExtractionsCount(int maxConcurrentExtractionsCount)
-
Sets the maximum number of allowed concurrent extractions
getMaxConcurrentExtractionsCount
public int getMaxConcurrentExtractionsCount()
-
Gets the maximum count of allowed concurrent extractions
Returns:
-
maximum count