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 ByteCapacity
B(long bytes)
int
compareTo(ByteCapacity other)
boolean
equals(Object o)
static ByteCapacity
from(String value)
static ByteCapacity
GB(long gigabytes)
int
hashCode()
static ByteCapacity
kB(long kilobytes)
static ByteCapacity
MB(long megabytes)
static ByteCapacity
TB(long terabytes)
long
toBytes()
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<ByteCapacity>
-
-