Package com.levigo.jadice.server
Class StreamSizeLimit
- java.lang.Object
-
- com.levigo.jadice.server.Limit
-
- com.levigo.jadice.server.StreamSizeLimit
-
- All Implemented Interfaces:
Serializable
,Comparable<Limit>
public final class StreamSizeLimit extends Limit
- 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 StreamSizeLimit(long maximumSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Limit other)
boolean
doesExceed(long bytesRead)
boolean
equals(Object o)
long
getMaximumSize()
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 bytesRead)
- Specified by:
doesExceed
in classLimit
-
getMaximumSize
public long getMaximumSize()
-
-