@GridToStringExclude public class GridCacheContextInfo<K,V> extends Object
| Constructor and Description |
|---|
GridCacheContextInfo(DynamicCacheDescriptor cacheDesc)
Constructor of not started cache context.
|
GridCacheContextInfo(GridCacheContext<K,V> cctx,
boolean clientCache)
Constructor of full cache context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
affinityNode() |
@Nullable GridCacheContext |
cacheContext() |
int |
cacheId() |
CacheConfiguration |
config() |
IgniteUuid |
dynamicDeploymentId() |
int |
groupId() |
void |
initCacheContext(GridCacheContext<?,?> cctx)
Set real cache context in case cache has been fully initted and start.
|
boolean |
isCacheContextInited() |
boolean |
isClientCache() |
String |
name() |
String |
toString() |
public GridCacheContextInfo(GridCacheContext<K,V> cctx, boolean clientCache)
cctx - Cache context.clientCache - Client cache or not.public GridCacheContextInfo(DynamicCacheDescriptor cacheDesc)
cacheDesc - Cache descriptor.public CacheConfiguration config()
public String name()
public int groupId()
public int cacheId()
public boolean affinityNode()
true in case affinity node.@Nullable public @Nullable GridCacheContext cacheContext()
null for not started cache.public IgniteUuid dynamicDeploymentId()
public void initCacheContext(GridCacheContext<?,?> cctx)
cctx - Initted cache context.public boolean isClientCache()
true For client cache.public boolean isCacheContextInited()
true If Cache context is initted.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020