Package org.teiid.translator
Class CacheDirective
- java.lang.Object
-
- org.teiid.translator.CacheDirective
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CacheHint
public class CacheDirective extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheDirective.Invalidation
static class
CacheDirective.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 boolean
equals(Object obj)
CacheDirective.Invalidation
getInvalidation()
Boolean
getPrefersMemory()
Boolean
getReadAll()
Whether the engine should read and cache the entire results.CacheDirective.Scope
getScope()
Long
getTtl()
Get the time to live in millisecondsBoolean
getUpdatable()
Get whether the result is updatable and therefore sensitive to data changes.int
hashCode()
void
setInvalidation(CacheDirective.Invalidation invalidation)
void
setPrefersMemory(Boolean prefersMemory)
void
setReadAll(Boolean readAll)
void
setScope(CacheDirective.Scope scope)
void
setTtl(Long ttl)
Set the time to live in millisecondsvoid
setUpdatable(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)
-
-