Package com.hazelcast.config
Class MemoryTierConfig
java.lang.Object
com.hazelcast.config.MemoryTierConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
Memory tier configuration of Tiered-Store.
- Since:
- 5.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returns the capacity of this memory tier.int
Returns type identifier for this class.int
Returns DataSerializableFactory factory ID for this class.final int
hashCode()
void
Reads fields from the input streamsetCapacity
(Capacity capacity) Sets the capacity of this memory tier.toString()
void
Writes object fields to output stream
-
Field Details
-
DEFAULT_CAPACITY
Default capacity. It is 256 MB.
-
-
Constructor Details
-
MemoryTierConfig
public MemoryTierConfig() -
MemoryTierConfig
-
-
Method Details
-
getCapacity
Returns the capacity of this memory tier.- Returns:
- memory tier capacity.
-
setCapacity
Sets the capacity of this memory tier.- Parameters:
capacity
- capacity.- Returns:
- this MemoryTierConfig
-
equals
-
hashCode
public final int hashCode() -
toString
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-