Uses of Enum Class
com.hazelcast.memory.MemoryUnit
Package
Description
Provides classes/interfaces for memory utilities, heap/native memory storage support.
-
Uses of MemoryUnit in com.hazelcast.memory
Modifier and TypeMethodDescriptionstatic MemoryUnit
MemoryUnit.getById
(int id) Capacity.getUnit()
Returns unit of the capacitystatic MemoryUnit
Returns the enum constant of this class with the specified name.static MemoryUnit[]
MemoryUnit.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionabstract long
MemoryUnit.convert
(long value, MemoryUnit m) static Capacity
Capacity.of
(long value, MemoryUnit unit) Returns an instance ofCapacity
.static Capacity
Capacity.parse
(String value, MemoryUnit defaultUnit) Parses string representation of a capacity.static MemorySize
MemorySize.parse
(String value, MemoryUnit defaultUnit) Deprecated.static String
Capacity.toPrettyString
(long capacity, MemoryUnit unit) Utility method to create a pretty format representation of given capacity with a specified unit.ModifierConstructorDescriptionCapacity
(long value, MemoryUnit unit) MemorySize
(long value, MemoryUnit unit) Deprecated.
Capacity.parse(String, MemoryUnit)
instead