| java.lang.Object org.continuent.sequoia.controller.cache.result.ResultCacheRule
ResultCacheRule | public class ResultCacheRule implements XmlComponent(Code) | | This is the to define cache rules in the cache. A
ResultCacheRule is defined by a queryPattern, set to 'default'
if default rule, and a CacheBehavior .
author: Nicolas Modrzyk author: Emmanuel Cecchet version: 1.0 |
Constructor Summary | |
public | ResultCacheRule(String queryString, boolean caseSensitive, boolean applyToSkeleton, long timestampResolution) |
ResultCacheRule | public ResultCacheRule(String queryString, boolean caseSensitive, boolean applyToSkeleton, long timestampResolution)(Code) | | Creates a new ResultCacheRule
Parameters: queryString - for this rule Parameters: caseSensitive - true if matching is case sensitive Parameters: applyToSkeleton - true if rule apply to query skeleton Parameters: timestampResolution - timestamp resolution for NOW() macro |
getCacheBehavior | public CacheBehavior getCacheBehavior()(Code) | | Get the cache behavior
the CacheBehavior for thisResultCacheRule |
getQueryPattern | public Pattern getQueryPattern()(Code) | | Get the query pattern
the queryPattern for this ResultCacheRule |
getTimestampResolution | public long getTimestampResolution()(Code) | | Retrieve the timestamp resolution of this scheduler
timestampResolution |
setCacheBehavior | public void setCacheBehavior(CacheBehavior behavior)(Code) | | Set the cache behavior
Parameters: behavior - behavior for this rule |
|
|