public class CacheDirective extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
CacheDirective.Invalidation |
static class |
CacheDirective.Scope |
Constructor and Description |
---|
CacheDirective() |
CacheDirective(Boolean prefersMemory,
Long ttl) |
Modifier and Type | Method and 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 milliseconds
|
Boolean |
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 milliseconds
|
void |
setUpdatable(Boolean updatable) |
public Boolean getPrefersMemory()
public void setPrefersMemory(Boolean prefersMemory)
public Long getTtl()
public void setTtl(Long ttl)
ttl
- public Boolean getUpdatable()
public void setUpdatable(Boolean updatable)
public CacheDirective.Scope getScope()
public void setScope(CacheDirective.Scope scope)
public Boolean getReadAll()
public void setReadAll(Boolean readAll)
public CacheDirective.Invalidation getInvalidation()
public void setInvalidation(CacheDirective.Invalidation invalidation)
Copyright © 2020. All rights reserved.