public class TimePredicate extends Object implements CachePredicate, InternalCachePredicate
Constructor and Description |
---|
TimePredicate(String typeName,
String timeColumn,
java.time.Duration period) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(IEntryData entryData) |
TemplateMatchTier |
evaluate(ITemplateHolder template) |
TemplateMatchTier |
evaluate(ITemplatePacket packet) |
long |
getExpirationTime(Object value,
long gracePeriod) |
java.time.Duration |
getPeriod() |
String |
getTimeColumn() |
SegmentRange |
getTimeRuleAsInstantRange() |
SegmentRange |
getTimeRuleAsTypedRange(String typeName) |
String |
getTypeName() |
boolean |
isTimeRule() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isTransient
public String getTypeName()
public java.time.Duration getPeriod()
public String getTimeColumn()
public long getExpirationTime(Object value, long gracePeriod)
public TemplateMatchTier evaluate(ITemplatePacket packet)
evaluate
in interface InternalCachePredicate
public boolean evaluate(IEntryData entryData)
evaluate
in interface CachePredicate
public TemplateMatchTier evaluate(ITemplateHolder template)
evaluate
in interface CachePredicate
public boolean isTimeRule()
isTimeRule
in interface CachePredicate
public SegmentRange getTimeRuleAsInstantRange()
public SegmentRange getTimeRuleAsTypedRange(String typeName)
Copyright © GigaSpaces.