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
ConstructorDescriptionItemListenerConfig
(ItemListener implementation, boolean includeValue) ItemListenerConfig
(ItemListenerConfig config) ItemListenerConfig
(String className, boolean includeValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns type identifier for this class.Returns the EventListener implementation.int
hashCode()
boolean
void
Reads fields from the input streamsetImplementation
(ItemListener implementation) setIncludeValue
(boolean includeValue) toString()
void
Writes 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:ListenerConfig
Returns the EventListener implementation. If none has been specified, null is returned.- Overrides:
getImplementation
in classListenerConfig
- Returns:
- the EventListener implementation
- See Also:
-
setImplementation
-
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.
-