Package com.levigo.jadice.server
Class PageCountLimit
- java.lang.Object
-
- com.levigo.jadice.server.Limit
-
- com.levigo.jadice.server.PageCountLimit
-
- All Implemented Interfaces:
Serializable
,Comparable<Limit>
public class PageCountLimit extends Limit
ALimit
restricting the maximum number of pages within a generated document.This Limit is only respected on those nodes that generate documents and where this type of limit makes sense. See the javadoc of the individual nodes.
- 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 PageCountLimit(int maximumNumberOfPages)
-
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
-
-
-
-
Method Detail
-
compareTo
public int compareTo(Limit other)
-
doesExceed
public boolean doesExceed(long count)
- Specified by:
doesExceed
in classLimit
-
-