public class QueryAutocacheConfig
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_CACHED_QUERIES |
static int |
DEFAULT_QUERY_CACHE_SIZE_M_B |
static int |
DEFAULT_TOTAL_CACHE_SIZE_M_B |
int |
maxCachedQueries |
int |
queryCacheSizeMB |
int |
totalCacheSizeMB |
Constructor and Description |
---|
QueryAutocacheConfig() |
QueryAutocacheConfig(QueryAutocacheConfig o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this QueryAutocacheConfig.
|
static QueryAutocacheConfig |
fromString(java.lang.String s)
String representation of this QueryAutocacheConfig.
|
int |
getMaxCachedQueries()
Number of queries cached.
|
int |
getQueryCacheSizeMB()
Maximum cached query size.
|
int |
getTotalCacheSizeMB()
Maximum cache size in MB (cross queries).
|
QueryAutocacheConfig |
makeCopy()
Creates and returns a deep copy of this QueryAutocacheConfig.
|
static QueryAutocacheConfig |
readFrom(java.io.InputStream is)
Read this QueryAutocacheConfig from an XML fragment.
|
void |
setMaxCachedQueries(int maxCachedQueries)
Number of queries cached.
|
void |
setQueryCacheSizeMB(int queryCacheSizeMB)
Maximum cached query size.
|
void |
setTotalCacheSizeMB(int totalCacheSizeMB)
Maximum cache size in MB (cross queries).
|
java.lang.String |
toString()
String representation of this QueryAutocacheConfig.
|
QueryAutocacheConfig |
withMaxCachedQueries(int maxCachedQueries) |
QueryAutocacheConfig |
withMaxCachedQueries(java.lang.Integer maxCachedQueries) |
QueryAutocacheConfig |
withQueryCacheSizeMB(int queryCacheSizeMB) |
QueryAutocacheConfig |
withQueryCacheSizeMB(java.lang.Integer queryCacheSizeMB) |
QueryAutocacheConfig |
withTotalCacheSizeMB(int totalCacheSizeMB) |
QueryAutocacheConfig |
withTotalCacheSizeMB(java.lang.Integer totalCacheSizeMB) |
void |
writeTo(java.io.OutputStream os)
Write this QueryAutocacheConfig as an XML fragment
|
public int totalCacheSizeMB
public static final int DEFAULT_TOTAL_CACHE_SIZE_M_B
public int queryCacheSizeMB
public static final int DEFAULT_QUERY_CACHE_SIZE_M_B
public int maxCachedQueries
public static final int DEFAULT_MAX_CACHED_QUERIES
public QueryAutocacheConfig()
public QueryAutocacheConfig(QueryAutocacheConfig o)
public void setTotalCacheSizeMB(int totalCacheSizeMB)
public int getTotalCacheSizeMB()
public QueryAutocacheConfig withTotalCacheSizeMB(int totalCacheSizeMB)
public QueryAutocacheConfig withTotalCacheSizeMB(java.lang.Integer totalCacheSizeMB)
public void setQueryCacheSizeMB(int queryCacheSizeMB)
public int getQueryCacheSizeMB()
public QueryAutocacheConfig withQueryCacheSizeMB(int queryCacheSizeMB)
public QueryAutocacheConfig withQueryCacheSizeMB(java.lang.Integer queryCacheSizeMB)
public void setMaxCachedQueries(int maxCachedQueries)
public int getMaxCachedQueries()
public QueryAutocacheConfig withMaxCachedQueries(int maxCachedQueries)
public QueryAutocacheConfig withMaxCachedQueries(java.lang.Integer maxCachedQueries)
public QueryAutocacheConfig makeCopy()
public static QueryAutocacheConfig readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static QueryAutocacheConfig fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.