Package com.hazelcast.config
Class EntryListenerConfig
- java.lang.Object
-
- com.hazelcast.config.ListenerConfig
-
- com.hazelcast.config.EntryListenerConfig
-
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
public class EntryListenerConfig extends ListenerConfig
Configuration forEntryListener
-
-
Field Summary
-
Fields inherited from class com.hazelcast.config.ListenerConfig
className, implementation
-
-
Constructor Summary
Constructors Constructor Description EntryListenerConfig()
EntryListenerConfig(EntryListenerConfig config)
EntryListenerConfig(MapListener implementation, boolean local, boolean includeValue)
EntryListenerConfig(java.lang.String className, boolean local, 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.MapListener
getImplementation()
Returns the EventListener implementation.int
hashCode()
boolean
isIncludeValue()
boolean
isLocal()
void
readData(ObjectDataInput in)
Reads fields from the input streamEntryListenerConfig
setImplementation(MapListener implementation)
ListenerConfig
setImplementation(java.util.EventListener implementation)
Sets the EventListener implementation.EntryListenerConfig
setIncludeValue(boolean includeValue)
EntryListenerConfig
setLocal(boolean local)
java.lang.String
toString()
void
writeData(ObjectDataOutput out)
Writes object fields to output stream-
Methods inherited from class com.hazelcast.config.ListenerConfig
getClassName, getFactoryId, setClassName
-
-
-
-
Constructor Detail
-
EntryListenerConfig
public EntryListenerConfig()
-
EntryListenerConfig
public EntryListenerConfig(java.lang.String className, boolean local, boolean includeValue)
-
EntryListenerConfig
public EntryListenerConfig(MapListener implementation, boolean local, boolean includeValue)
-
EntryListenerConfig
public EntryListenerConfig(EntryListenerConfig config)
-
-
Method Detail
-
setImplementation
public ListenerConfig setImplementation(java.util.EventListener implementation)
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:
ListenerConfig.setClassName(String)
,ListenerConfig.getImplementation()
-
setImplementation
public EntryListenerConfig setImplementation(MapListener implementation)
-
getImplementation
public MapListener 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)
-
isLocal
public boolean isLocal()
- Overrides:
isLocal
in classListenerConfig
-
setLocal
public EntryListenerConfig setLocal(boolean local)
-
isIncludeValue
public boolean isIncludeValue()
- Overrides:
isIncludeValue
in classListenerConfig
-
setIncludeValue
public EntryListenerConfig 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.
-
-