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 IgniteException |
checkRemovedAfterFail(Exception cause)
Checks removed status after fail.
|
protected void |
invalidateLocalState()
Invalidates local state.
|
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)
Would return this object work to normal.
|
void |
suspend()
Would suspend calls for this object.
|
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.protected IgniteException checkRemovedAfterFail(Exception cause)
cause - Initial exception.cause.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 GridCacheRemovablecache - To update with.public 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 Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021