Class HotRestartConfig

  • All Implemented Interfaces:
    DataSerializable, IdentifiedDataSerializable

    @Deprecated
    public class HotRestartConfig
    extends java.lang.Object
    implements IdentifiedDataSerializable
    Deprecated.
    since 5.0 use DataPersistenceConfig
    Configures the Hot Restart Persistence per Hazelcast data structure.

    Note: If either, but not both, data-persistence (DataPersistenceConfig) or hot-restart (HotRestartConfig) is enabled, Hazelcast will use the configuration of the enabled element. If both are enabled, Hazelcast will use the data-persistence (DataPersistenceConfig) configuration. hot-restart element (and thus HotRestartConfig) will be removed in a future release.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Deprecated.
       
      int getClassId()
      Deprecated.
      Returns type identifier for this class.
      int getFactoryId()
      Deprecated.
      Returns DataSerializableFactory factory ID for this class.
      int hashCode()
      Deprecated.
       
      boolean isEnabled()
      Deprecated.
      Returns whether hot restart enabled on related data structure.
      boolean isFsync()
      Deprecated.
      Returns whether disk write should be followed by an fsync() system call.
      void readData​(ObjectDataInput in)
      Deprecated.
      Reads fields from the input stream
      HotRestartConfig setEnabled​(boolean enabled)
      Deprecated.
      Sets whether hot restart is enabled on related data structure.
      HotRestartConfig setFsync​(boolean fsync)
      Deprecated.
      Sets whether disk write should be followed by an fsync() system call.
      java.lang.String toString()
      Deprecated.
       
      void writeData​(ObjectDataOutput out)
      Deprecated.
      Writes object fields to output stream
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HotRestartConfig

        public HotRestartConfig()
        Deprecated.
      • HotRestartConfig

        public HotRestartConfig​(HotRestartConfig hotRestartConfig)
        Deprecated.
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Deprecated.
        Returns whether hot restart enabled on related data structure.
        Returns:
        true if hot restart enabled, false otherwise
      • setEnabled

        public HotRestartConfig setEnabled​(boolean enabled)
        Deprecated.
        Sets whether hot restart is enabled on related data structure.
        Returns:
        HotRestartConfig
      • isFsync

        public boolean isFsync()
        Deprecated.
        Returns whether disk write should be followed by an fsync() system call.
        Returns:
        true if fsync is be called after disk write, false otherwise
      • setFsync

        public HotRestartConfig setFsync​(boolean fsync)
        Deprecated.
        Sets whether disk write should be followed by an fsync() system call.
        Parameters:
        fsync - fsync
        Returns:
        this HotRestartConfig
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • writeData

        public void writeData​(ObjectDataOutput out)
                       throws java.io.IOException
        Deprecated.
        Description copied from interface: DataSerializable
        Writes object fields to output stream
        Specified by:
        writeData in interface DataSerializable
        Parameters:
        out - output
        Throws:
        java.io.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 java.io.IOException
        Deprecated.
        Description copied from interface: DataSerializable
        Reads fields from the input stream
        Specified by:
        readData in interface DataSerializable
        Parameters:
        in - input
        Throws:
        java.io.IOException - if an I/O error occurs. In particular, an IOException may be thrown if the input stream has been closed.
      • equals

        public final boolean equals​(java.lang.Object o)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object