Class ByteCapacity
java.lang.Object
com.rabbitmq.stream.ByteCapacity
- All Implemented Interfaces:
Comparable<ByteCapacity>
API to easily configure byte capacities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteCapacityB(long bytes) intcompareTo(ByteCapacity other) booleanstatic ByteCapacitystatic ByteCapacityGB(long gigabytes) inthashCode()static ByteCapacitykB(long kilobytes) static ByteCapacityMB(long megabytes) static ByteCapacityTB(long terabytes) longtoBytes()toString()
-
Method Details
-
B
-
kB
-
MB
-
GB
-
TB
-
toBytes
public long toBytes() -
from
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<ByteCapacity>
-