public class CacheObjectContext extends Object implements CacheObjectValueContext
| Constructor and Description |
|---|
CacheObjectContext(GridKernalContext kernalCtx,
String cacheName,
AffinityKeyMapper dfltAffMapper,
boolean customAffMapper,
boolean cpyOnGet,
boolean storeVal,
boolean addDepInfo,
boolean binaryEnabled) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo() |
boolean |
binaryEnabled() |
String |
cacheName() |
boolean |
copyOnGet() |
boolean |
customAffinityMapper() |
AffinityKeyMapper |
defaultAffMapper() |
GridKernalContext |
kernalContext() |
boolean |
storeValue() |
Object |
unwrapBinaryIfNeeded(Object o,
boolean keepBinary,
boolean cpy) |
public CacheObjectContext(GridKernalContext kernalCtx, String cacheName, AffinityKeyMapper dfltAffMapper, boolean customAffMapper, boolean cpyOnGet, boolean storeVal, boolean addDepInfo, boolean binaryEnabled)
kernalCtx - Kernal context.dfltAffMapper - Default affinity mapper.cpyOnGet - Copy on get flag.storeVal - True if should store unmarshalled value in cache.addDepInfo - true if deployment info should be associated with the objects of this cache.binaryEnabled - Binary enabled flag.public String cacheName()
public boolean addDeploymentInfo()
addDeploymentInfo in interface CacheObjectValueContextTrue if deployment info should be associated with the objects of this cache.public boolean copyOnGet()
copyOnGet in interface CacheObjectValueContextpublic boolean storeValue()
storeValue in interface CacheObjectValueContextTrue if should store unmarshalled value in cache.public AffinityKeyMapper defaultAffMapper()
public boolean customAffinityMapper()
public GridKernalContext kernalContext()
kernalContext in interface CacheObjectValueContextpublic boolean binaryEnabled()
binaryEnabled in interface CacheObjectValueContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020