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,
long expireTime) |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
long |
expireTime() |
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, long expireTime)
key - Key.val - Value.primary - True if changes made on primary node.part - Partition.ord - Order of the entry change.cacheId - Cache id.expireTime - Expire time.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()public long expireTime()
expireTime in interface CdcEvent0 then entry will be cached until removed.IgniteCache.withExpiryPolicy(ExpiryPolicy),
CacheConfiguration.setExpiryPolicyFactory(Factory),
GridCacheUtils.EXPIRE_TIME_ETERNAL
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023