Class Threshold
java.lang.Object
org.jboss.resteasy.spi.config.Threshold
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static Threshold
Creates a new threshold.boolean
reached
(long size) Checks if the given size is greater than the bytes available for the threshold.sizeUnit()
Returns the size unit for this threshold.long
toBytes()
The size in bytes for this threshold.toString()
static Threshold
Parses the given string representation of a threshold.
-
Field Details
-
NONE
-
DEFAULT
-
-
Method Details
-
of
-
toBytes
public long toBytes()The size in bytes for this threshold.- Returns:
- the size in bytes
-
sizeUnit
-
reached
public boolean reached(long size) Checks if the given size is greater than the bytes available for the threshold.- Parameters:
size
- the size to validate- Returns:
false
if the size is greater than the bytes allowed for this threshold, otherwisetrue
-
hashCode
-
valueOf
-
equals
-
toString
-