public class CacheObjectContext extends Object
| Constructor and Description |
|---|
CacheObjectContext(GridKernalContext kernalCtx,
AffinityKeyMapper dfltAffMapper,
boolean cpyOnGet,
boolean storeVal,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo() |
boolean |
copyOnGet() |
AffinityKeyMapper |
defaultAffMapper() |
GridKernalContext |
kernalContext() |
boolean |
p2pEnabled() |
IgniteCacheObjectProcessor |
processor() |
boolean |
storeValue() |
Object |
unwrapPortableIfNeeded(Object o,
boolean keepPortable) |
Object |
unwrapPortableIfNeeded(Object o,
boolean keepPortable,
boolean cpy) |
Collection<Object> |
unwrapPortablesIfNeeded(Collection<Object> col,
boolean keepPortable) |
Collection<Object> |
unwrapPortablesIfNeeded(Collection<Object> col,
boolean keepPortable,
boolean cpy) |
Object[] |
unwrapPortablesInArrayIfNeeded(Object[] arr,
boolean keepPortable,
boolean cpy)
Unwrap array of portables if needed.
|
public CacheObjectContext(GridKernalContext kernalCtx, 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 boolean p2pEnabled()
True if peer class loading is enabled.public boolean addDeploymentInfo()
True if deployment info should be associated with the objects of this cache.public boolean copyOnGet()
public boolean storeValue()
True if should store unmarshalled value in cache.public AffinityKeyMapper defaultAffMapper()
public GridKernalContext kernalContext()
public IgniteCacheObjectProcessor processor()
public Object unwrapPortableIfNeeded(Object o, boolean keepPortable)
o - Object to unwrap.keepPortable - Keep binary flag.public Object unwrapPortableIfNeeded(Object o, boolean keepPortable, boolean cpy)
o - Object to unwrap.keepPortable - Keep binary flag.cpy - Copy value flag.public Collection<Object> unwrapPortablesIfNeeded(Collection<Object> col, boolean keepPortable)
col - Collection of objects to unwrap.keepPortable - Keep binary flag.public Collection<Object> unwrapPortablesIfNeeded(Collection<Object> col, boolean keepPortable, boolean cpy)
col - Collection to unwrap.keepPortable - Keep binary flag.cpy - Copy value flag.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015