public class CdcEventImpl extends Object implements CdcEvent
CdcMain,
CdcConsumer,
Serialized Form| Constructor and Description |
|---|
CdcEventImpl(Object key,
Object val,
boolean primary,
int part,
CacheEntryVersion ord,
int cacheId) |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
Object |
key() |
int |
partition()
Ignite split dataset into smaller chunks to distribute them across the cluster.
|
boolean |
primary() |
String |
toString() |
Object |
value() |
CacheEntryVersion |
version() |
public CdcEventImpl(Object key, Object val, boolean primary, int part, CacheEntryVersion ord, int cacheId)
key - Key.val - Value.primary - True if changes made on primary node.part - Partition.ord - Order of the entry change.cacheId - Cache id.public Object value()
public boolean primary()
primary in interface CdcEventTrue if event fired on primary node for partition containing this entry.public int partition()
CdcConsumer implementations can use CdcEvent.partition() to split changes processing
in the same way as it done for the cache.partition in interface CdcEventAffinity.partition(Object),
Affinity.partitions(),
Data partitioning,
Affinity collocationpublic CacheEntryVersion version()
public int cacheId()
cacheId in interface CdcEventGridCacheUtils.cacheId(String),
CacheView.cacheId()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.13.0 Release Date : April 20 2022