Class TieredStoreConfig

java.lang.Object
com.hazelcast.config.TieredStoreConfig
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable

public class TieredStoreConfig extends Object implements IdentifiedDataSerializable
Tiered-Store configuration.
Since:
5.1
  • Field Details

    • DEFAULT_ENABLED

      public static final boolean DEFAULT_ENABLED
      Default value for if tiered-store is enabled.
      See Also:
  • Constructor Details

    • TieredStoreConfig

      public TieredStoreConfig()
    • TieredStoreConfig

      public TieredStoreConfig(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

      public TieredStoreConfig setEnabled(boolean enabled)
      Sets whether tiered-store is enabled on the related data structure.
      Parameters:
      enabled - enabled parameter.
      Returns:
      this TieredStoreConfig
    • getMemoryTierConfig

      public MemoryTierConfig getMemoryTierConfig()
      Returns the memory tier config of this tiered-store configuration.
      Returns:
      MemoryTierConfig of this tiered-store configuration.
    • setMemoryTierConfig

      public TieredStoreConfig setMemoryTierConfig(MemoryTierConfig memoryTierConfig)
      Sets the memory tier config of this tiered-store configuration.
      Parameters:
      memoryTierConfig - memory tier configuration.
      Returns:
      this TieredStoreConfig
    • getDiskTierConfig

      public DiskTierConfig getDiskTierConfig()
      Returns the disk tier config of this tiered-store configuration.
      Returns:
      TSDiskTierConfig of this tiered-store configuration.
    • setDiskTierConfig

      public TieredStoreConfig setDiskTierConfig(DiskTierConfig diskTierConfig)
      Sets the disk tier config of this tiered-store configuration.
      Parameters:
      diskTierConfig - disk tier configuration.
      Returns:
      this TieredStoreConfig
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • writeData

      public void writeData(ObjectDataOutput out) throws IOException
      Description copied from interface: DataSerializable
      Writes object fields to output stream
      Specified by:
      writeData in interface DataSerializable
      Parameters:
      out - output
      Throws:
      IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
    • readData

      public void readData(ObjectDataInput in) throws IOException
      Description copied from interface: DataSerializable
      Reads fields from the input stream
      Specified by:
      readData in interface DataSerializable
      Parameters:
      in - input
      Throws:
      IOException - if an I/O error occurs. In particular, an IOException 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 interface IdentifiedDataSerializable
      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 interface IdentifiedDataSerializable
      Returns:
      type ID