@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<K,V> |
cacheContext() |
int |
cacheId() |
void |
clearCacheContext()
Clear real cache context; the method is used on cache.close() on not-affinity nodes to
set up cache on idle state (not started on client, similar to state after join client node).
|
CacheConfiguration<K,V> |
config() |
IgniteUuid |
dynamicDeploymentId() |
int |
groupId() |
String |
groupName()
Returns name of cache group.
|
void |
initCacheContext(GridCacheContext<K,V> cctx)
Set real cache context in case cache has been fully initted and start.
|
boolean |
isCacheContextInited() |
boolean |
isClientCache() |
String |
name() |
void |
onSchemaAddQueryEntity(SchemaAddQueryEntityOperation op)
Apply changes from
SchemaAddQueryEntityOperation. |
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<K,V> config()
public String name()
public String groupName()
public int groupId()
public int cacheId()
public boolean affinityNode()
true in case affinity node.@Nullable public @Nullable GridCacheContext<K,V> cacheContext()
null for not started cache.public IgniteUuid dynamicDeploymentId()
public void initCacheContext(GridCacheContext<K,V> cctx)
cctx - Initted cache context.public void clearCacheContext()
public boolean isClientCache()
true For client cache.public boolean isCacheContextInited()
true If Cache context is initted.public void onSchemaAddQueryEntity(SchemaAddQueryEntityOperation op)
SchemaAddQueryEntityOperation.op - Add query entity schema operation.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021