Class CacheObjectContext
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheObjectContext
-
- All Implemented Interfaces:
CacheObjectValueContext
public class CacheObjectContext extends Object implements CacheObjectValueContext
-
-
Constructor Summary
Constructors Constructor Description CacheObjectContext(GridKernalContext kernalCtx, String cacheName, AffinityKeyMapper dfltAffMapper, boolean customAffMapper, boolean cpyOnGet, boolean storeVal, boolean addDepInfo, boolean binaryEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddDeploymentInfo()booleanbinaryEnabled()StringcacheName()booleancopyOnGet()booleancustomAffinityMapper()AffinityKeyMapperdefaultAffMapper()GridKernalContextkernalContext()booleanstoreValue()ObjectunwrapBinaryIfNeeded(Object o, boolean keepBinary, boolean cpy, @Nullable ClassLoader ldr)
-
-
-
Constructor Detail
-
CacheObjectContext
public CacheObjectContext(GridKernalContext kernalCtx, String cacheName, AffinityKeyMapper dfltAffMapper, boolean customAffMapper, boolean cpyOnGet, boolean storeVal, boolean addDepInfo, boolean binaryEnabled)
- Parameters:
kernalCtx- Kernal context.dfltAffMapper- Default affinity mapper.cpyOnGet- Copy on get flag.storeVal-Trueif should store unmarshalled value in cache.addDepInfo-trueif deployment info should be associated with the objects of this cache.binaryEnabled- Binary enabled flag.
-
-
Method Detail
-
cacheName
public String cacheName()
- Returns:
- Cache name.
-
addDeploymentInfo
public boolean addDeploymentInfo()
- Specified by:
addDeploymentInfoin interfaceCacheObjectValueContext- Returns:
Trueif deployment info should be associated with the objects of this cache.
-
copyOnGet
public boolean copyOnGet()
- Specified by:
copyOnGetin interfaceCacheObjectValueContext- Returns:
- Copy on get flag.
-
storeValue
public boolean storeValue()
- Specified by:
storeValuein interfaceCacheObjectValueContext- Returns:
Trueif should store unmarshalled value in cache.
-
defaultAffMapper
public AffinityKeyMapper defaultAffMapper()
- Returns:
- Default affinity mapper.
-
customAffinityMapper
public boolean customAffinityMapper()
- Returns:
- Whether custom affinity mapper is used.
-
kernalContext
public GridKernalContext kernalContext()
- Specified by:
kernalContextin interfaceCacheObjectValueContext- Returns:
- Kernal context.
-
binaryEnabled
public boolean binaryEnabled()
- Specified by:
binaryEnabledin interfaceCacheObjectValueContext- Returns:
- Binary enabled flag.
-
unwrapBinaryIfNeeded
public Object unwrapBinaryIfNeeded(Object o, boolean keepBinary, boolean cpy, @Nullable @Nullable ClassLoader ldr)
- Parameters:
o- Object to unwrap.keepBinary- Keep binary flag.cpy- Copy value flag.ldr- Class loader, used for deserialization from binary representation.- Returns:
- Unwrapped object.
-
-