com.hazelcast.config

## Class LegacyCacheEvictionConfig

- java.lang.Object
- - com.hazelcast.config.LegacyCacheEvictionConfig

- All Implemented Interfaces:
    DataSerializable, TypedDataSerializable

      public class LegacyCacheEvictionConfig
      extends Object
      implements TypedDataSerializable

  Configuration for cache eviction (used for backward compatibility). Comparator support is not provided for compatibility.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LegacyCacheEvictionConfig()`
    `LegacyCacheEvictionConfig(CacheEvictionConfig evictionConfig)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Class` | `getClassType()`
    `CacheEvictionConfig` | `getConfig()`
    `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

    - #### LegacyCacheEvictionConfig

          public LegacyCacheEvictionConfig()

    - #### LegacyCacheEvictionConfig

          public LegacyCacheEvictionConfig(CacheEvictionConfig evictionConfig)

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

    - #### getConfig

          public CacheEvictionConfig getConfig()

Copyright © 2019. All rights reserved.