com.hazelcast.config

## Class LegacyCacheConfig<K,V>

- java.lang.Object
- - com.hazelcast.config.LegacyCacheConfig<K,V>

- Type Parameters:
    `K` - the key type
    `V` - the value type
  All Implemented Interfaces:
    DataSerializable, TypedDataSerializable

      public class LegacyCacheConfig<K,V>
      extends Object
      implements TypedDataSerializable

  Contains all the configuration for the `ICache` (used for backward compatibility).

  This class does not support disablePerEntryInvalidationEvents and has no eviction policy comparator support.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LegacyCacheConfig()`
    `LegacyCacheConfig(CacheConfig<K,V> config)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Class` | `getClassType()`
    `CacheConfig<K,V>` | `getConfigAndReset()`
    `void` | `readData(ObjectDataInput in)` Reads fields from the input stream
    `void` | `writeData(ObjectDataOutput out)` Writes object fields to output stream

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LegacyCacheConfig

          public LegacyCacheConfig()

    - #### LegacyCacheConfig

          public LegacyCacheConfig(CacheConfig<K,V> config)

  - ### Method Detail

    - #### 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.

    - #### getClassType

          public Class getClassType()

      Specified by:
        `getClassType` in interface `TypedDataSerializable`
      Returns:
        The class type that this serializable wants to act as.

    - #### getConfigAndReset

          public CacheConfig<K,V> getConfigAndReset()

Copyright © 2019. All rights reserved.