Package com.rabbitmq.stream
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 ByteCapacity
B
(long bytes) int
compareTo
(ByteCapacity other) boolean
static ByteCapacity
static ByteCapacity
GB
(long gigabytes) int
hashCode()
static ByteCapacity
kB
(long kilobytes) static ByteCapacity
MB
(long megabytes) static ByteCapacity
TB
(long terabytes) long
toBytes()
toString()
-
Method Details
-
B
-
kB
-
MB
-
GB
-
TB
-
toBytes
public long toBytes() -
from
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ByteCapacity>
-