Package net.thevpc.naru.api.scheduler
Class TtlRetentionPolicy
java.lang.Object
net.thevpc.naru.api.scheduler.TtlRetentionPolicy
- All Implemented Interfaces:
NaruRetentionPolicy,net.thevpc.nuts.elem.NToElement
Drop after a fixed duration since firedAt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()longnextCheckMillis(NaruEvent event) booleanshouldDrop(NaruEvent event) net.thevpc.nuts.elem.NElementtoString()
-
Constructor Details
-
TtlRetentionPolicy
public TtlRetentionPolicy(net.thevpc.nuts.time.NDuration ttl)
-
-
Method Details
-
shouldDrop
- Specified by:
shouldDropin interfaceNaruRetentionPolicy
-
nextCheckMillis
- Specified by:
nextCheckMillisin interfaceNaruRetentionPolicy
-
toElement
public net.thevpc.nuts.elem.NElement toElement()- Specified by:
toElementin interfacenet.thevpc.nuts.elem.NToElement
-
toString
-
equals
-
hashCode
public int hashCode()
-