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
ConstructorsConstructorDescriptionEntryListenerConfig(MapListener implementation, boolean local, boolean includeValue) EntryListenerConfig(String className, boolean local, boolean includeValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns type identifier for this class.Returns the EventListener implementation.inthashCode()booleanbooleanisLocal()voidReads fields from the input streamsetImplementation(MapListener implementation) setImplementation(EventListener implementation) Sets the EventListener implementation.setIncludeValue(boolean includeValue) setLocal(boolean local) toString()voidWrites 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:ListenerConfigSets the EventListener implementation.If a className was set, it will be removed.
- Overrides:
setImplementationin classListenerConfig- Parameters:
implementation- the EventListener implementation- Returns:
- the updated ListenerConfig
- See Also:
-
setImplementation
-
getImplementation
Description copied from class:ListenerConfigReturns the EventListener implementation. If none has been specified, null is returned.- Overrides:
getImplementationin classListenerConfig- Returns:
- the EventListener implementation
- See Also:
-
isLocal
public boolean isLocal()- Overrides:
isLocalin classListenerConfig
-
setLocal
-
isIncludeValue
public boolean isIncludeValue()- Overrides:
isIncludeValuein classListenerConfig
-
setIncludeValue
-
toString
- Overrides:
toStringin classListenerConfig
-
equals
- Overrides:
equalsin classListenerConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classListenerConfig
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Overrides:
getClassIdin classListenerConfig- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- Overrides:
writeDatain classListenerConfig- Parameters:
out- output- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializableReads fields from the input stream- Specified by:
readDatain interfaceDataSerializable- Overrides:
readDatain classListenerConfig- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-