public class NodeCountLimit extends Limit
A Limit
restricting the number of Node
s that can be created at most at one job.
This limit does not only apply to Node
s that were created on client side, but also to
Node
s that were dynamically created on server side (see Node.getSubsidiaryNodes()
Limit.WhenExceedAction
Constructor and Description |
---|
NodeCountLimit(int maximumNumberOfNodes)
Create a new NodeCountLimit
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Limit other) |
boolean |
doesExceed(long count) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
getExceedAction, setExceedAction
public NodeCountLimit(int maximumNumberOfNodes)
maximumNumberOfNodes
- The maximum number of Node
s that can be created at one job.
Value must be > 0public int compareTo(Limit other)
public boolean doesExceed(long count)
doesExceed
in class Limit
Copyright © 2017 levigo holding gmbh. All rights reserved.