Package com.levigo.jadice.server
Class NodeCountLimit
- java.lang.Object
-
- com.levigo.jadice.server.Limit
-
- com.levigo.jadice.server.NodeCountLimit
-
- All Implemented Interfaces:
Serializable
,Comparable<Limit>
public class NodeCountLimit extends Limit
ALimit
restricting the number ofNode
s that can be created at most at one job. This limit does not only apply toNode
s that were created on client side, but also toNode
s that were dynamically created on server side (seeNode.getSubsidiaryNodes()
- Since:
- jadice server 4.3.1.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.levigo.jadice.server.Limit
Limit.WhenExceedAction
-
-
Constructor Summary
Constructors Constructor Description NodeCountLimit(int maximumNumberOfNodes)
Create a new NodeCountLimit
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Limit other)
boolean
doesExceed(long count)
boolean
equals(Object o)
int
hashCode()
String
toString()
-
Methods inherited from class com.levigo.jadice.server.Limit
getExceedAction, setExceedAction
-
-
-
-
Constructor Detail
-
NodeCountLimit
public NodeCountLimit(int maximumNumberOfNodes)
Create a new NodeCountLimit- Parameters:
maximumNumberOfNodes
- The maximum number ofNode
s that can be created at one job. Value must be > 0
-
-
Method Detail
-
compareTo
public int compareTo(Limit other)
-
doesExceed
public boolean doesExceed(long count)
- Specified by:
doesExceed
in classLimit
-
-