Class Threshold
java.lang.Object
org.jboss.resteasy.spi.config.Threshold
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static ThresholdCreates a new threshold.booleanreached(long size) Checks if the given size is greater than the bytes available for the threshold.sizeUnit()Returns the size unit for this threshold.longtoBytes()The size in bytes for this threshold.toString()static ThresholdParses 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:
falseif the size is greater than the bytes allowed for this threshold, otherwisetrue
-
hashCode
-
valueOf
-
equals
-
toString
-