@AlfrescoPublicApi public class TransformationOptionLimits extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
KBYTES_MESSAGE |
static String |
OPT_MAX_PAGES |
static String |
OPT_MAX_SOURCE_SIZE_K_BYTES |
static String |
OPT_PAGE_LIMIT |
static String |
OPT_READ_LIMIT_K_BYTES |
static String |
OPT_READ_LIMIT_TIME_MS |
static String |
OPT_TIMEOUT_MS |
static String |
PAGES_MESSAGE |
static String |
TIME_MESSAGE |
Constructor and Description |
---|
TransformationOptionLimits() |
Modifier and Type | Method and Description |
---|---|
TransformationOptionLimits |
combine(TransformationOptionLimits that)
Returns a TransformationOptionLimits that has getter methods that combine the
the values from the getter methods of this and the supplied TransformationOptionLimits.
|
TransformationOptionLimits |
combineUpper(TransformationOptionLimits that)
Returns a TransformationOptionLimits that has getter methods that combine the
the values from the getter methods of this and the supplied TransformationOptionLimits
so that they return the lowest common denominator of the limits .
|
void |
defaultTo(TransformationOptionLimits limits)
This method overrides rather than defaults values into the supplied limits (as the
name might suggest), but because of the order in which it is called, this results in the
correct defaults being set.
|
boolean |
equals(Object obj) |
TransformationOptionPair |
getKBytesPair() |
int |
getMaxPages() |
long |
getMaxSourceSizeKBytes() |
int |
getPageLimit() |
TransformationOptionPair |
getPagesPair() |
long |
getReadLimitKBytes() |
long |
getReadLimitTimeMs() |
long |
getTimeoutMs() |
TransformationOptionPair |
getTimePair() |
int |
hashCode() |
static Map<String,Object> |
removeFromMap(Map<String,Object> optionsMap) |
void |
set(Map<String,Object> optionsMap) |
void |
setMaxPages(int maxPages) |
void |
setMaxSourceSizeKBytes(long maxSourceSizeKBytes) |
void |
setPageLimit(int pageLimit) |
void |
setReadLimitKBytes(long readLimitKBytes) |
void |
setReadLimitTimeMs(long readLimitTimeMs) |
void |
setTimeoutMs(long timeoutMs) |
boolean |
supported()
Indicates if the limits allow a transformation to take place at all.
|
Map<String,Object> |
toMap(Map<String,Object> optionsMap) |
String |
toString() |
public static final String OPT_TIMEOUT_MS
public static final String OPT_READ_LIMIT_TIME_MS
public static final String OPT_MAX_SOURCE_SIZE_K_BYTES
public static final String OPT_READ_LIMIT_K_BYTES
public static final String OPT_MAX_PAGES
public static final String OPT_PAGE_LIMIT
public static final String TIME_MESSAGE
public static final String KBYTES_MESSAGE
public static final String PAGES_MESSAGE
public void defaultTo(TransformationOptionLimits limits)
A call to this method overrides any values in the supplied limits parameter with those in this Object. The supplied limits parameter is being gradually built up by initially setting the most general limits and then more specific values for each level. As a result 'default' values from the more general levels will still exist at the end if more specific ones have not been supplied.
limits
- to be setpublic TransformationOptionPair getTimePair()
public long getTimeoutMs()
public void setTimeoutMs(long timeoutMs)
public long getReadLimitTimeMs()
public void setReadLimitTimeMs(long readLimitTimeMs)
public TransformationOptionPair getKBytesPair()
public long getMaxSourceSizeKBytes()
public void setMaxSourceSizeKBytes(long maxSourceSizeKBytes)
public long getReadLimitKBytes()
public void setReadLimitKBytes(long readLimitKBytes)
public TransformationOptionPair getPagesPair()
public int getMaxPages()
public void setMaxPages(int maxPages)
public int getPageLimit()
public void setPageLimit(int pageLimit)
public boolean supported()
public TransformationOptionLimits combine(TransformationOptionLimits that)
public TransformationOptionLimits combineUpper(TransformationOptionLimits that)
Copyright © 2005–2017 Alfresco Software. All rights reserved.