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
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault value for if tiered-store is enabled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanintReturns type identifier for this class.Returns the disk tier config of this tiered-store configuration.intReturns DataSerializableFactory factory ID for this class.Returns the memory tier config of this tiered-store configuration.final inthashCode()booleanReturns whether tiered-store is enabled on the related data structure.voidReads 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()voidWrites 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:
MemoryTierConfigof 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:
TSDiskTierConfigof 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:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-