Package org.teiid.translator
Class CacheDirective
- java.lang.Object
-
- org.teiid.translator.CacheDirective
-
- All Implemented Interfaces:
Serializable
public class CacheDirective extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCacheDirective.Invalidationstatic classCacheDirective.Scope
-
Constructor Summary
Constructors Constructor Description CacheDirective()CacheDirective(Boolean prefersMemory, Long ttl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CacheDirective.InvalidationgetInvalidation()BooleangetPrefersMemory()BooleangetReadAll()Whether the engine should read and cache the entire results.CacheDirective.ScopegetScope()LonggetTtl()Get the time to live in millisecondsBooleangetUpdatable()Get whether the result is updatable and therefore sensitive to data changes.inthashCode()voidsetInvalidation(CacheDirective.Invalidation invalidation)voidsetPrefersMemory(Boolean prefersMemory)voidsetReadAll(Boolean readAll)voidsetScope(CacheDirective.Scope scope)voidsetTtl(Long ttl)Set the time to live in millisecondsvoidsetUpdatable(Boolean updatable)
-
-
-
Method Detail
-
getPrefersMemory
public Boolean getPrefersMemory()
-
setPrefersMemory
public void setPrefersMemory(Boolean prefersMemory)
-
getTtl
public Long getTtl()
Get the time to live in milliseconds- Returns:
-
setTtl
public void setTtl(Long ttl)
Set the time to live in milliseconds- Parameters:
ttl-
-
getUpdatable
public Boolean getUpdatable()
Get whether the result is updatable and therefore sensitive to data changes.- Returns:
-
setUpdatable
public void setUpdatable(Boolean updatable)
-
getScope
public CacheDirective.Scope getScope()
-
setScope
public void setScope(CacheDirective.Scope scope)
-
getReadAll
public Boolean getReadAll()
Whether the engine should read and cache the entire results.- Returns:
-
setReadAll
public void setReadAll(Boolean readAll)
-
getInvalidation
public CacheDirective.Invalidation getInvalidation()
-
setInvalidation
public void setInvalidation(CacheDirective.Invalidation invalidation)
-
-