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
ConstructorDescriptionCacheSimpleEntryListenerConfig
(CacheSimpleEntryListenerConfig listenerConfig) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
int
Returns type identifier for this class.int
Returns DataSerializableFactory factory ID for this class.final int
hashCode()
boolean
If old value is required, previously assigned values for the affected keys will be sent to this cache entry listener implementation.boolean
Iftrue
, this cache entry listener implementation will be called in a synchronous manner.void
Reads 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()
void
Writes 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:
true
if old value is required,false
otherwise
-
setOldValueRequired
Iftrue
, previously assigned values for the affected keys will be sent to this cache entry listener implementation. Setting this attribute totrue
creates additional traffic. Default value isfalse
.- Parameters:
oldValueRequired
-true
to have old value required,false
otherwise- Returns:
- this configuration
-
isSynchronous
public boolean isSynchronous()Iftrue
, this cache entry listener implementation will be called in a synchronous manner.- Returns:
true
if this cache entry listener implementation will be called in a synchronous manner,false
otherwise
-
setSynchronous
Iftrue
, this cache entry listener implementation will be called in a synchronous manner.- Parameters:
synchronous
-true
to have this cache entry listener implementation called in a synchronous manner,false
otherwise.- Returns:
- this configuration
-
equals
-
hashCode
public final int hashCode() -
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
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
- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- 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
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
toString
-