Package com.hazelcast.config
Class ItemListenerConfig
java.lang.Object
com.hazelcast.config.ListenerConfig
com.hazelcast.config.ItemListenerConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Contains the configuration for an Item Listener.
-
Field Summary
Fields inherited from class com.hazelcast.config.ListenerConfig
className, implementation -
Constructor Summary
ConstructorsConstructorDescriptionItemListenerConfig(ItemListener implementation, boolean includeValue) ItemListenerConfig(ItemListenerConfig config) ItemListenerConfig(String className, boolean includeValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns type identifier for this class.Returns the EventListener implementation.inthashCode()booleanvoidReads fields from the input streamsetImplementation(ItemListener implementation) setIncludeValue(boolean includeValue) toString()voidWrites object fields to output streamMethods inherited from class com.hazelcast.config.ListenerConfig
getClassName, getFactoryId, isLocal, setClassName, setImplementation
-
Constructor Details
-
ItemListenerConfig
public ItemListenerConfig() -
ItemListenerConfig
-
ItemListenerConfig
-
ItemListenerConfig
-
-
Method Details
-
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:
-
setImplementation
-
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.
-