public class CacheObjectContext extends Object implements CacheObjectValueContext
| Constructor and Description |
|---|
CacheObjectContext(GridKernalContext kernalCtx,
String cacheName,
AffinityKeyMapper dfltAffMapper,
boolean cpyOnGet,
boolean storeVal,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo() |
boolean |
binaryEnabled() |
String |
cacheName() |
boolean |
copyOnGet() |
AffinityKeyMapper |
defaultAffMapper() |
GridKernalContext |
kernalContext() |
boolean |
storeValue() |
Object |
unwrapBinaryIfNeeded(Object o,
boolean keepBinary,
boolean cpy) |
public CacheObjectContext(GridKernalContext kernalCtx, String cacheName, AffinityKeyMapper dfltAffMapper, boolean cpyOnGet, boolean storeVal, boolean addDepInfo)
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.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 GridKernalContext kernalContext()
kernalContext in interface CacheObjectValueContextpublic boolean binaryEnabled()
binaryEnabled in interface CacheObjectValueContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019