Package com.hazelcast.config
Class TieredStoreConfig
java.lang.Object
com.hazelcast.config.TieredStoreConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
Tiered-Store configuration.
- Since:
- 5.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Default value for if tiered-store is enabled. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
int
Returns type identifier for this class.Returns the disk tier config of this tiered-store configuration.int
Returns DataSerializableFactory factory ID for this class.Returns the memory tier config of this tiered-store configuration.final int
hashCode()
boolean
Returns whether tiered-store is enabled on the related data structure.void
Reads fields from the input streamsetDiskTierConfig
(DiskTierConfig diskTierConfig) Sets the disk tier config of this tiered-store configuration.setEnabled
(boolean enabled) Sets whether tiered-store is enabled on the related data structure.setMemoryTierConfig
(MemoryTierConfig memoryTierConfig) Sets the memory tier config of this tiered-store configuration.toString()
void
Writes object fields to output stream
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDDefault value for if tiered-store is enabled.- See Also:
-
-
Constructor Details
-
TieredStoreConfig
public TieredStoreConfig() -
TieredStoreConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether tiered-store is enabled on the related data structure.- Returns:
- true if tiered-store is enabled, false otherwise.
-
setEnabled
Sets whether tiered-store is enabled on the related data structure.- Parameters:
enabled
- enabled parameter.- Returns:
- this TieredStoreConfig
-
getMemoryTierConfig
Returns the memory tier config of this tiered-store configuration.- Returns:
MemoryTierConfig
of this tiered-store configuration.
-
setMemoryTierConfig
Sets the memory tier config of this tiered-store configuration.- Parameters:
memoryTierConfig
- memory tier configuration.- Returns:
- this TieredStoreConfig
-
getDiskTierConfig
Returns the disk tier config of this tiered-store configuration.- Returns:
TSDiskTierConfig
of this tiered-store configuration.
-
setDiskTierConfig
Sets the disk tier config of this tiered-store configuration.- Parameters:
diskTierConfig
- disk tier configuration.- Returns:
- this TieredStoreConfig
-
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
-