Package com.rabbitmq.stream
Class ByteCapacity
- java.lang.Object
-
- com.rabbitmq.stream.ByteCapacity
-
- All Implemented Interfaces:
Comparable<ByteCapacity>
public class ByteCapacity extends Object implements Comparable<ByteCapacity>
API to easily configure byte capacities.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ByteCapacityB(long bytes)intcompareTo(ByteCapacity other)booleanequals(Object o)static ByteCapacityfrom(String value)static ByteCapacityGB(long gigabytes)inthashCode()static ByteCapacitykB(long kilobytes)static ByteCapacityMB(long megabytes)static ByteCapacityTB(long terabytes)longtoBytes()StringtoString()
-
-
-
Method Detail
-
B
public static ByteCapacity B(long bytes)
-
kB
public static ByteCapacity kB(long kilobytes)
-
MB
public static ByteCapacity MB(long megabytes)
-
GB
public static ByteCapacity GB(long gigabytes)
-
TB
public static ByteCapacity TB(long terabytes)
-
toBytes
public long toBytes()
-
from
public static ByteCapacity from(String value)
-
compareTo
public int compareTo(ByteCapacity other)
- Specified by:
compareToin interfaceComparable<ByteCapacity>
-
-