Package com.hazelcast.config
Class CacheSimpleEntryListenerConfig
java.lang.Object
com.hazelcast.config.CacheSimpleEntryListenerConfig
- All Implemented Interfaces:
DataSerializable,IdentifiedDataSerializable
Simple configuration to hold parsed listener config.
-
Constructor Summary
ConstructorsConstructorDescriptionCacheSimpleEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanintReturns type identifier for this class.intReturns DataSerializableFactory factory ID for this class.final inthashCode()booleanIf old value is required, previously assigned values for the affected keys will be sent to this cache entry listener implementation.booleanIftrue, this cache entry listener implementation will be called in a synchronous manner.voidReads fields from the input streamsetCacheEntryEventFilterFactory(String cacheEntryEventFilterFactory) setCacheEntryListenerFactory(String cacheEntryListenerFactory) setOldValueRequired(boolean oldValueRequired) Iftrue, previously assigned values for the affected keys will be sent to this cache entry listener implementation.setSynchronous(boolean synchronous) Iftrue, this cache entry listener implementation will be called in a synchronous manner.toString()voidWrites object fields to output stream
-
Constructor Details
-
CacheSimpleEntryListenerConfig
-
CacheSimpleEntryListenerConfig
public CacheSimpleEntryListenerConfig()
-
-
Method Details
-
getCacheEntryListenerFactory
-
setCacheEntryListenerFactory
public CacheSimpleEntryListenerConfig setCacheEntryListenerFactory(String cacheEntryListenerFactory) -
getCacheEntryEventFilterFactory
-
setCacheEntryEventFilterFactory
public CacheSimpleEntryListenerConfig setCacheEntryEventFilterFactory(String cacheEntryEventFilterFactory) -
isOldValueRequired
public boolean isOldValueRequired()If old value is required, previously assigned values for the affected keys will be sent to this cache entry listener implementation.- Returns:
trueif old value is required,falseotherwise
-
setOldValueRequired
Iftrue, previously assigned values for the affected keys will be sent to this cache entry listener implementation. Setting this attribute totruecreates additional traffic. Default value isfalse.- Parameters:
oldValueRequired-trueto have old value required,falseotherwise- Returns:
- this configuration
-
isSynchronous
public boolean isSynchronous()Iftrue, this cache entry listener implementation will be called in a synchronous manner.- Returns:
trueif this cache entry listener implementation will be called in a synchronous manner,falseotherwise
-
setSynchronous
Iftrue, this cache entry listener implementation will be called in a synchronous manner.- Parameters:
synchronous-trueto have this cache entry listener implementation called in a synchronous manner,falseotherwise.- Returns:
- this configuration
-
equals
-
hashCode
public final int hashCode() -
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializableReturns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryIdin interfaceIdentifiedDataSerializable- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializableReturns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassIdin interfaceIdentifiedDataSerializable- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializableWrites object fields to output stream- Specified by:
writeDatain interfaceDataSerializable- 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- Parameters:
in- input- Throws:
IOException- if an I/O error occurs. In particular, anIOExceptionmay be thrown if the input stream has been closed.
-
toString
-