com.hazelcast.config

## Class EntryListenerConfig

- java.lang.Object
- - com.hazelcast.config.ListenerConfig
  - - com.hazelcast.config.EntryListenerConfig

- All Implemented Interfaces:
    DataSerializable, IdentifiedDataSerializable
  Direct Known Subclasses:
    EntryListenerConfigReadOnly

      public class EntryListenerConfig
      extends ListenerConfig

  Configuration for EntryListener

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `EntryListenerConfig.MapListenerToEntryListenerAdapter` Wraps a MapListener into an EntryListener.

  - ### Field Summary

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

      `className, implementation`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `EntryListenerConfig()`
    `EntryListenerConfig(EntryListener implementation, boolean local, boolean includeValue)`
    `EntryListenerConfig(EntryListenerConfig config)`
    `EntryListenerConfig(MapListener implementation, boolean local, boolean includeValue)`
    `EntryListenerConfig(String className, boolean local, boolean includeValue)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `EntryListenerConfigReadOnly` | `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.
    `EntryListener` | `getImplementation()` Returns the EventListener implementation.
    `int` | `hashCode()`
    `boolean` | `isIncludeValue()`
    `boolean` | `isLocal()`
    `void` | `readData(ObjectDataInput in)` Reads fields from the input stream
    `EntryListenerConfig` | `setImplementation(EntryListener implementation)`
    `ListenerConfig` | `setImplementation(EventListener implementation)` Sets the EventListener implementation.
    `EntryListenerConfig` | `setIncludeValue(boolean includeValue)`
    `EntryListenerConfig` | `setLocal(boolean local)`
    `String` | `toString()`
    `void` | `writeData(ObjectDataOutput out)` Writes object fields to output stream

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

      `getClassName, getFactoryId, setClassName`

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

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

- - ### Constructor Detail

    - #### EntryListenerConfig

          public EntryListenerConfig()

    - #### EntryListenerConfig

          public EntryListenerConfig(String className,
                                     boolean local,
                                     boolean includeValue)

    - #### EntryListenerConfig

          public EntryListenerConfig(EntryListener implementation,
                                     boolean local,
                                     boolean includeValue)

    - #### EntryListenerConfig

          public EntryListenerConfig(MapListener implementation,
                                     boolean local,
                                     boolean includeValue)

    - #### EntryListenerConfig

          public EntryListenerConfig(EntryListenerConfig config)

  - ### Method Detail

    - #### getAsReadOnly

          public EntryListenerConfigReadOnly getAsReadOnly()

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

    - #### setImplementation

          public ListenerConfig setImplementation(EventListener implementation)

      Description copied from class: `ListenerConfig`
      Sets the EventListener implementation.

      If a className was set, it will be removed.

      Overrides:
        `setImplementation` in class `ListenerConfig`
      Parameters:
        `implementation` - the EventListener implementation
      Returns:
        the updated ListenerConfig
      See Also:
        `ListenerConfig.setClassName(String)`, `ListenerConfig.getImplementation()`

    - #### getImplementation

          public EntryListener getImplementation()

      Description copied from class: `ListenerConfig`
      Returns the EventListener implementation. If none has been specified, null is returned.
      Overrides:
        `getImplementation` in class `ListenerConfig`
      Returns:
        the EventListener implementation
      See Also:
        `ListenerConfig.setImplementation(java.util.EventListener)`

    - #### setImplementation

          public EntryListenerConfig setImplementation(EntryListener implementation)

    - #### isLocal

          public boolean isLocal()

      Overrides:
        `isLocal` in class `ListenerConfig`

    - #### setLocal

          public EntryListenerConfig setLocal(boolean local)

    - #### isIncludeValue

          public boolean isIncludeValue()

      Overrides:
        `isIncludeValue` in class `ListenerConfig`

    - #### setIncludeValue

          public EntryListenerConfig setIncludeValue(boolean includeValue)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `ListenerConfig`

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `ListenerConfig`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `ListenerConfig`

    - #### getId

          public int getId()

      Description copied from interface: `IdentifiedDataSerializable`
      Returns type identifier for this class. It should be unique per DataSerializableFactory.
      Specified by:
        `getId` in interface `IdentifiedDataSerializable`
      Overrides:
        `getId` in class `ListenerConfig`
      Returns:
        type ID

    - #### 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`
      Overrides:
        `writeData` in class `ListenerConfig`
      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`
      Overrides:
        `readData` in class `ListenerConfig`
      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.

Copyright © 2020. All rights reserved.