Package net.thevpc.naru.api.scheduler
Class MaxConsumersRetentionPolicy
java.lang.Object
net.thevpc.naru.api.scheduler.MaxConsumersRetentionPolicy
- All Implemented Interfaces:
NaruRetentionPolicy,net.thevpc.nuts.elem.NToElement
Drop after at least N distinct tasks have consumed it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()longnextCheckMillis(NaruEvent event) booleanshouldDrop(NaruEvent event) net.thevpc.nuts.elem.NElementtoString()
-
Constructor Details
-
MaxConsumersRetentionPolicy
public MaxConsumersRetentionPolicy(int maxConsumers)
-
-
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()
-