Package com.hazelcast.config
Class ItemListenerConfig
- java.lang.Object
-
- com.hazelcast.config.ListenerConfig
-
- com.hazelcast.config.ItemListenerConfig
-
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public class ItemListenerConfig extends ListenerConfig
Contains the configuration for an Item Listener.
-
-
Field Summary
-
Fields inherited from class com.hazelcast.config.ListenerConfig
className, implementation
-
-
Constructor Summary
Constructors Constructor Description ItemListenerConfig()
ItemListenerConfig(ItemListener implementation, boolean includeValue)
ItemListenerConfig(ItemListenerConfig config)
ItemListenerConfig(java.lang.String className, boolean includeValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getClassId()
Returns type identifier for this class.ItemListener
getImplementation()
Returns the EventListener implementation.int
hashCode()
boolean
isIncludeValue()
void
readData(ObjectDataInput in)
Reads fields from the input streamItemListenerConfig
setImplementation(ItemListener implementation)
ItemListenerConfig
setIncludeValue(boolean includeValue)
java.lang.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream-
Methods inherited from class com.hazelcast.config.ListenerConfig
getClassName, getFactoryId, isLocal, setClassName, setImplementation
-
-
-
-
Constructor Detail
-
ItemListenerConfig
public ItemListenerConfig()
-
ItemListenerConfig
public ItemListenerConfig(java.lang.String className, boolean includeValue)
-
ItemListenerConfig
public ItemListenerConfig(ItemListener implementation, boolean includeValue)
-
ItemListenerConfig
public ItemListenerConfig(ItemListenerConfig config)
-
-
Method Detail
-
getImplementation
public ItemListener 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:
ListenerConfig.setImplementation(java.util.EventListener)
-
setImplementation
public ItemListenerConfig setImplementation(ItemListener implementation)
-
isIncludeValue
public boolean isIncludeValue()
- Overrides:
isIncludeValue
in classListenerConfig
-
setIncludeValue
public ItemListenerConfig setIncludeValue(boolean includeValue)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classListenerConfig
-
equals
public boolean equals(java.lang.Object o)
- 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
public void writeData(ObjectDataOutput out) throws java.io.IOException
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Overrides:
writeData
in classListenerConfig
- Parameters:
out
- output- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
public void readData(ObjectDataInput in) throws java.io.IOException
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Overrides:
readData
in classListenerConfig
- Parameters:
in
- input- Throws:
java.io.IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
-