public abstract class AtomicDataStructureProxy<V extends AtomicDataStructureValue> extends Object implements GridCacheRemovable, IgniteChangeGlobalStateSupport
| Modifier and Type | Field and Description |
|---|---|
protected IgniteInternalCache<GridCacheInternalKey,V> |
cacheView
Structure projection.
|
protected GridCacheContext<GridCacheInternalKey,V> |
ctx
Cache context.
|
protected GridCacheInternalKey |
key
Structure key.
|
protected IgniteLogger |
log
Logger.
|
protected String |
name
Structure name.
|
protected boolean |
rmvd
Removed flag.
|
| Constructor and Description |
|---|
AtomicDataStructureProxy()
Empty constructor required by
Externalizable. |
AtomicDataStructureProxy(String name,
GridCacheInternalKey key,
IgniteInternalCache<GridCacheInternalKey,V> cacheView)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkRemoved()
Check removed status.
|
protected void |
invalidateLocalState() |
GridCacheInternalKey |
key() |
String |
name() |
void |
needCheckNotRemoved() |
void |
onActivate(GridKernalContext kctx)
Called when cluster performing activation.
|
void |
onDeActivate(GridKernalContext kctx)
Called when cluster performing deactivation.
|
boolean |
onRemoved()
Set status of data structure as removed.
|
boolean |
removed() |
void |
restart(IgniteInternalCache cache) |
void |
suspend() |
protected IgniteLogger log
protected volatile boolean rmvd
protected String name
protected GridCacheInternalKey key
protected IgniteInternalCache<GridCacheInternalKey,V extends AtomicDataStructureValue> cacheView
protected volatile GridCacheContext<GridCacheInternalKey,V extends AtomicDataStructureValue> ctx
public AtomicDataStructureProxy()
Externalizable.public AtomicDataStructureProxy(String name, GridCacheInternalKey key, IgniteInternalCache<GridCacheInternalKey,V> cacheView)
name - Structure name.key - Structure key.cacheView - Cache projection.public String name()
public GridCacheInternalKey key()
public boolean removed()
protected void checkRemoved()
throws IllegalStateException
IllegalStateException - If removed.public boolean onRemoved()
onRemoved in interface GridCacheRemovablepublic void needCheckNotRemoved()
needCheckNotRemoved in interface GridCacheRemovablepublic void suspend()
suspend in interface GridCacheRemovablepublic void restart(IgniteInternalCache cache)
restart in interface GridCacheRemovablepublic void onActivate(GridKernalContext kctx) throws IgniteCheckedException
onActivate in interface IgniteChangeGlobalStateSupportkctx - Kernal context.IgniteCheckedException - If failed.public void onDeActivate(GridKernalContext kctx)
onDeActivate in interface IgniteChangeGlobalStateSupportkctx - Kernal context.protected void invalidateLocalState()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018