Package com.levigo.jadice.server
Class StreamCountLimit
- java.lang.Object
-
- com.levigo.jadice.server.Limit
-
- com.levigo.jadice.server.StreamCountLimit
-
- All Implemented Interfaces:
Serializable
,Comparable<Limit>
public final class StreamCountLimit extends Limit
ALimit
restricting the maximum number of streams routed through stream bundles to which the limit applies.- 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 StreamCountLimit(int maximumNumberOfStreams)
-
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
-
-