public class TimeBasedSearchCache extends SearchCache implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EXPIRY_TIME_S |
int |
expiryTimeS |
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 |
---|
TimeBasedSearchCache() |
TimeBasedSearchCache(TimeBasedSearchCache o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this TimeBasedSearchCache.
|
static TimeBasedSearchCache |
fromString(java.lang.String s)
String representation of this TimeBasedSearchCache.
|
int |
getExpiryTimeS()
Expiry time for queries in the cache
|
TimeBasedSearchCache |
makeCopy()
Creates and returns a deep copy of this TimeBasedSearchCache.
|
static TimeBasedSearchCache |
readFrom(java.io.InputStream is)
Read this TimeBasedSearchCache from an XML fragment.
|
void |
setExpiryTimeS(int expiryTimeS)
Expiry time for queries in the cache
|
java.lang.String |
toString()
String representation of this TimeBasedSearchCache.
|
TimeBasedSearchCache |
withCacheQueries(boolean cacheQueries) |
TimeBasedSearchCache |
withCacheQueries(java.lang.Boolean cacheQueries) |
TimeBasedSearchCache |
withExpiryTimeS(int expiryTimeS) |
TimeBasedSearchCache |
withExpiryTimeS(java.lang.Integer expiryTimeS) |
TimeBasedSearchCache |
withIgnoreFromCacheKey(java.lang.String ignoreFromCacheKey) |
TimeBasedSearchCache |
withMaxCachedQueries(int maxCachedQueries) |
TimeBasedSearchCache |
withMaxCachedQueries(java.lang.Integer maxCachedQueries) |
TimeBasedSearchCache |
withName(java.lang.String name) |
TimeBasedSearchCache |
withWarmUpQuery(java.util.Collection<WarmUpQuery> __values) |
TimeBasedSearchCache |
withWarmUpQuery(WarmUpQuery... __values)
Queries that will be automatically cached
|
TimeBasedSearchCache |
withWarmupThreads(int warmupThreads) |
TimeBasedSearchCache |
withWarmupThreads(java.lang.Integer warmupThreads) |
TimeBasedSearchCache |
withWarmupWorkRatio(double warmupWorkRatio) |
void |
writeTo(java.io.OutputStream os)
Write this TimeBasedSearchCache as an XML fragment
|
getIgnoreFromCacheKey, getMaxCachedQueries, getName, getWarmUpQuery, getWarmupThreads, getWarmupWorkRatio, isCacheQueries, setCacheQueries, setIgnoreFromCacheKey, setMaxCachedQueries, setName, setWarmupThreads, setWarmupWorkRatio
public int expiryTimeS
public static final int DEFAULT_EXPIRY_TIME_S
public TimeBasedSearchCache()
public TimeBasedSearchCache(TimeBasedSearchCache o)
public TimeBasedSearchCache withName(java.lang.String name)
withName
in class SearchCache
public TimeBasedSearchCache withWarmUpQuery(WarmUpQuery... __values)
withWarmUpQuery
in class SearchCache
public TimeBasedSearchCache withWarmUpQuery(java.util.Collection<WarmUpQuery> __values)
withWarmUpQuery
in class SearchCache
public TimeBasedSearchCache withWarmupWorkRatio(double warmupWorkRatio)
withWarmupWorkRatio
in class SearchCache
public TimeBasedSearchCache withWarmupThreads(int warmupThreads)
withWarmupThreads
in class SearchCache
public TimeBasedSearchCache withWarmupThreads(java.lang.Integer warmupThreads)
withWarmupThreads
in class SearchCache
public TimeBasedSearchCache withCacheQueries(boolean cacheQueries)
withCacheQueries
in class SearchCache
public TimeBasedSearchCache withCacheQueries(java.lang.Boolean cacheQueries)
withCacheQueries
in class SearchCache
public TimeBasedSearchCache withMaxCachedQueries(int maxCachedQueries)
withMaxCachedQueries
in class SearchCache
public TimeBasedSearchCache withMaxCachedQueries(java.lang.Integer maxCachedQueries)
withMaxCachedQueries
in class SearchCache
public TimeBasedSearchCache withIgnoreFromCacheKey(java.lang.String ignoreFromCacheKey)
withIgnoreFromCacheKey
in class SearchCache
public void setExpiryTimeS(int expiryTimeS)
public int getExpiryTimeS()
public TimeBasedSearchCache withExpiryTimeS(int expiryTimeS)
public TimeBasedSearchCache withExpiryTimeS(java.lang.Integer expiryTimeS)
public TimeBasedSearchCache makeCopy()
makeCopy
in class SearchCache
public static TimeBasedSearchCache 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 TimeBasedSearchCache 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.