public class ConsistentSearchCache extends SearchCache implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_WARMUP_DELAY_S |
int |
warmupDelayS |
cacheQueries, DEFAULT_CACHE_QUERIES, DEFAULT_IGNORE_FROM_CACHE_KEY, DEFAULT_MAX_CACHED_QUERIES, DEFAULT_WARMUP_THREADS, DEFAULT_WARMUP_WORK_RATIO, ignoreFromCacheKey, maxCachedQueries, name, warmUpQuery, warmupThreads, warmupWorkRatio
Constructor and Description |
---|
ConsistentSearchCache() |
ConsistentSearchCache(ConsistentSearchCache o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ConsistentSearchCache.
|
static ConsistentSearchCache |
fromString(java.lang.String s)
String representation of this ConsistentSearchCache.
|
int |
getWarmupDelayS()
Elapsed time in seconds between imports on one of the build group slices, then the warmup starts.
|
ConsistentSearchCache |
makeCopy()
Creates and returns a deep copy of this ConsistentSearchCache.
|
static ConsistentSearchCache |
readFrom(java.io.InputStream is)
Read this ConsistentSearchCache from an XML fragment.
|
void |
setWarmupDelayS(int warmupDelayS)
Elapsed time in seconds between imports on one of the build group slices, then the warmup starts.
|
java.lang.String |
toString()
String representation of this ConsistentSearchCache.
|
ConsistentSearchCache |
withCacheQueries(boolean cacheQueries) |
ConsistentSearchCache |
withCacheQueries(java.lang.Boolean cacheQueries) |
ConsistentSearchCache |
withIgnoreFromCacheKey(java.lang.String ignoreFromCacheKey) |
ConsistentSearchCache |
withMaxCachedQueries(int maxCachedQueries) |
ConsistentSearchCache |
withMaxCachedQueries(java.lang.Integer maxCachedQueries) |
ConsistentSearchCache |
withName(java.lang.String name) |
ConsistentSearchCache |
withWarmupDelayS(int warmupDelayS) |
ConsistentSearchCache |
withWarmupDelayS(java.lang.Integer warmupDelayS) |
ConsistentSearchCache |
withWarmUpQuery(java.util.Collection<WarmUpQuery> __values) |
ConsistentSearchCache |
withWarmUpQuery(WarmUpQuery... __values)
Queries that will be automatically cached
|
ConsistentSearchCache |
withWarmupThreads(int warmupThreads) |
ConsistentSearchCache |
withWarmupThreads(java.lang.Integer warmupThreads) |
ConsistentSearchCache |
withWarmupWorkRatio(double warmupWorkRatio) |
void |
writeTo(java.io.OutputStream os)
Write this ConsistentSearchCache as an XML fragment
|
getIgnoreFromCacheKey, getMaxCachedQueries, getName, getWarmUpQuery, getWarmupThreads, getWarmupWorkRatio, isCacheQueries, setCacheQueries, setIgnoreFromCacheKey, setMaxCachedQueries, setName, setWarmupThreads, setWarmupWorkRatio
public int warmupDelayS
public static final int DEFAULT_WARMUP_DELAY_S
public ConsistentSearchCache()
public ConsistentSearchCache(ConsistentSearchCache o)
public ConsistentSearchCache withName(java.lang.String name)
withName
in class SearchCache
public ConsistentSearchCache withWarmUpQuery(WarmUpQuery... __values)
withWarmUpQuery
in class SearchCache
public ConsistentSearchCache withWarmUpQuery(java.util.Collection<WarmUpQuery> __values)
withWarmUpQuery
in class SearchCache
public ConsistentSearchCache withWarmupWorkRatio(double warmupWorkRatio)
withWarmupWorkRatio
in class SearchCache
public ConsistentSearchCache withWarmupThreads(int warmupThreads)
withWarmupThreads
in class SearchCache
public ConsistentSearchCache withWarmupThreads(java.lang.Integer warmupThreads)
withWarmupThreads
in class SearchCache
public ConsistentSearchCache withCacheQueries(boolean cacheQueries)
withCacheQueries
in class SearchCache
public ConsistentSearchCache withCacheQueries(java.lang.Boolean cacheQueries)
withCacheQueries
in class SearchCache
public ConsistentSearchCache withMaxCachedQueries(int maxCachedQueries)
withMaxCachedQueries
in class SearchCache
public ConsistentSearchCache withMaxCachedQueries(java.lang.Integer maxCachedQueries)
withMaxCachedQueries
in class SearchCache
public ConsistentSearchCache withIgnoreFromCacheKey(java.lang.String ignoreFromCacheKey)
withIgnoreFromCacheKey
in class SearchCache
public void setWarmupDelayS(int warmupDelayS)
public int getWarmupDelayS()
public ConsistentSearchCache withWarmupDelayS(int warmupDelayS)
public ConsistentSearchCache withWarmupDelayS(java.lang.Integer warmupDelayS)
public ConsistentSearchCache makeCopy()
makeCopy
in class SearchCache
public static ConsistentSearchCache 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
writeTo
in class SearchCache
javax.xml.bind.JAXBException
java.io.IOException
public static ConsistentSearchCache 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 SearchCache
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SearchCache
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.