Package com.rabbitmq.client.amqp
Class ByteCapacity
java.lang.Object
com.rabbitmq.client.amqp.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>
-