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,
@Nullable ClassLoader ldr) |
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 CacheObjectValueContextpublic Object unwrapBinaryIfNeeded(Object o, boolean keepBinary, boolean cpy, @Nullable @Nullable ClassLoader ldr)
o - Object to unwrap.keepBinary - Keep binary flag.cpy - Copy value flag.ldr - Class loader, used for deserialization from binary representation.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021