Package | Description |
---|---|
com.hazelcast.memory |
Provides classes/interfaces for memory utilities, heap/native memory storage support.
|
Modifier and Type | Method and Description |
---|---|
static MemoryUnit |
MemoryUnit.getById(int id) |
MemoryUnit |
Capacity.getUnit()
Returns unit of the capacity
|
static MemoryUnit |
MemoryUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemoryUnit[] |
MemoryUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
abstract long |
MemoryUnit.convert(long value,
MemoryUnit m) |
static Capacity |
Capacity.of(long value,
MemoryUnit unit)
Returns an instance of
Capacity . |
static MemorySize |
MemorySize.parse(String value,
MemoryUnit defaultUnit)
Deprecated.
since 5.1, use
Capacity.parse(String, MemoryUnit) instead |
static Capacity |
Capacity.parse(String value,
MemoryUnit defaultUnit)
Parses string representation of a capacity.
|
static String |
Capacity.toPrettyString(long capacity,
MemoryUnit unit)
Utility method to create a pretty format representation of given capacity with a specified unit.
|
Constructor and Description |
---|
Capacity(long value,
MemoryUnit unit) |
MemorySize(long value,
MemoryUnit unit)
Deprecated.
|
Copyright © 2022 Hazelcast, Inc.. All rights reserved.