public class CacheSimpleEntryListenerConfig extends Object implements IdentifiedDataSerializable
Constructor and Description |
---|
CacheSimpleEntryListenerConfig() |
CacheSimpleEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCacheEntryEventFilterFactory() |
String |
getCacheEntryListenerFactory() |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
int |
hashCode() |
boolean |
isOldValueRequired()
If old value is required, previously assigned values for the affected keys
will be sent to this cache entry listener implementation.
|
boolean |
isSynchronous()
If
true , this cache entry listener implementation will be called in a synchronous manner. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
CacheSimpleEntryListenerConfig |
setCacheEntryEventFilterFactory(String cacheEntryEventFilterFactory) |
CacheSimpleEntryListenerConfig |
setCacheEntryListenerFactory(String cacheEntryListenerFactory) |
CacheSimpleEntryListenerConfig |
setOldValueRequired(boolean oldValueRequired)
If
true , previously assigned values for the affected keys will be sent to this
cache entry listener implementation. |
CacheSimpleEntryListenerConfig |
setSynchronous(boolean synchronous)
If
true , this cache entry listener implementation will be called in a synchronous manner. |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public CacheSimpleEntryListenerConfig(CacheSimpleEntryListenerConfig listenerConfig)
public CacheSimpleEntryListenerConfig()
public String getCacheEntryListenerFactory()
public CacheSimpleEntryListenerConfig setCacheEntryListenerFactory(String cacheEntryListenerFactory)
public String getCacheEntryEventFilterFactory()
public CacheSimpleEntryListenerConfig setCacheEntryEventFilterFactory(String cacheEntryEventFilterFactory)
public boolean isOldValueRequired()
true
if old value is required, false
otherwisepublic CacheSimpleEntryListenerConfig setOldValueRequired(boolean oldValueRequired)
true
, previously assigned values for the affected keys will be sent to this
cache entry listener implementation. Setting this attribute to true
creates additional traffic. Default value is false
.oldValueRequired
- true
to have old value required, false
otherwisepublic boolean isSynchronous()
true
, this cache entry listener implementation will be called in a synchronous manner.true
if this cache entry listener implementation will be called in a synchronous manner,
false
otherwisepublic CacheSimpleEntryListenerConfig setSynchronous(boolean synchronous)
true
, this cache entry listener implementation will be called in a synchronous manner.synchronous
- true
to have this cache entry listener implementation called in a synchronous manner,
false
otherwise.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getClassId()
IdentifiedDataSerializable
getClassId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.Copyright © 2024 Hazelcast, Inc.. All rights reserved.