Package com.hazelcast.config
Class EntryListenerConfig
java.lang.Object
com.hazelcast.config.ListenerConfig
com.hazelcast.config.EntryListenerConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
Configuration for
EntryListener
-
Field Summary
Fields inherited from class com.hazelcast.config.ListenerConfig
className, implementation
-
Constructor Summary
ConstructorDescriptionEntryListenerConfig
(MapListener implementation, boolean local, boolean includeValue) EntryListenerConfig
(String className, boolean local, boolean includeValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns type identifier for this class.Returns the EventListener implementation.int
hashCode()
boolean
boolean
isLocal()
void
Reads fields from the input streamsetImplementation
(MapListener implementation) setImplementation
(EventListener implementation) Sets the EventListener implementation.setIncludeValue
(boolean includeValue) setLocal
(boolean local) toString()
void
Writes object fields to output streamMethods inherited from class com.hazelcast.config.ListenerConfig
getClassName, getFactoryId, setClassName
-
Constructor Details
-
EntryListenerConfig
public EntryListenerConfig() -
EntryListenerConfig
-
EntryListenerConfig
-
EntryListenerConfig
-
-
Method Details
-
setImplementation
Description copied from class:ListenerConfig
Sets the EventListener implementation.If a className was set, it will be removed.
- Overrides:
setImplementation
in classListenerConfig
- Parameters:
implementation
- the EventListener implementation- Returns:
- the updated ListenerConfig
- See Also:
-
setImplementation
-
getImplementation
Description copied from class:ListenerConfig
Returns the EventListener implementation. If none has been specified, null is returned.- Overrides:
getImplementation
in classListenerConfig
- Returns:
- the EventListener implementation
- See Also:
-
isLocal
public boolean isLocal()- Overrides:
isLocal
in classListenerConfig
-
setLocal
-
isIncludeValue
public boolean isIncludeValue()- Overrides:
isIncludeValue
in classListenerConfig
-
setIncludeValue
-
toString
- Overrides:
toString
in classListenerConfig
-
equals
- Overrides:
equals
in classListenerConfig
-
hashCode
public int hashCode()- Overrides:
hashCode
in classListenerConfig
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Overrides:
getClassId
in classListenerConfig
- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Overrides:
writeData
in classListenerConfig
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Overrides:
readData
in classListenerConfig
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-