com.hazelcast.config

## Class AtomicReferenceConfig

- java.lang.Object
- - com.hazelcast.config.AbstractBasicConfig<AtomicReferenceConfig>
  - - com.hazelcast.config.AtomicReferenceConfig

- All Implemented Interfaces:
    NamedConfig, DataSerializable, IdentifiedDataSerializable, SplitBrainMergeTypeProvider

      public class AtomicReferenceConfig
      extends AbstractBasicConfig<AtomicReferenceConfig>

  Contains the configuration for an `AtomicReference`.
  Since:
    3.10

- - ### Field Summary

    - ### Fields inherited from class com.hazelcast.config.AbstractBasicConfig

      `mergePolicyConfig, name, quorumName`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AtomicReferenceConfig(AtomicReferenceConfig config)`
    `AtomicReferenceConfig(String name)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `AtomicReferenceConfig` | `getAsReadOnly()` Deprecated. this method will be removed in 4.0; it is meant for internal usage only
    `int` | `getId()` Returns type identifier for this class.
    `Class` | `getProvidedMergeTypes()`
    `int` | `hashCode()`
    `void` | `readData(ObjectDataInput in)` Reads fields from the input stream
    `void` | `writeData(ObjectDataOutput out)` Writes object fields to output stream

    - ### Methods inherited from class com.hazelcast.config.AbstractBasicConfig

      `getFactoryId, getMergePolicyConfig, getName, getQuorumName, setMergePolicyConfig, setName, setQuorumName, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AtomicReferenceConfig

          public AtomicReferenceConfig(String name)

    - #### AtomicReferenceConfig

          public AtomicReferenceConfig(AtomicReferenceConfig config)

  - ### Method Detail

    - #### getProvidedMergeTypes

          public Class getProvidedMergeTypes()

    - #### getId

          public int getId()

      Description copied from interface: `IdentifiedDataSerializable`
      Returns type identifier for this class. It should be unique per DataSerializableFactory.
      Returns:
        type ID

    - #### writeData

          public void writeData(ObjectDataOutput out)
                         throws IOException

      Description copied from interface: `DataSerializable`
      Writes object fields to output stream
      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
      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.

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public final int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### getAsReadOnly

          public AtomicReferenceConfig getAsReadOnly()

      Deprecated. this method will be removed in 4.0; it is meant for internal usage only
      Gets immutable version of this configuration.
      Returns:
        immutable version of this configuration

Copyright © 2019. All rights reserved.