public interface IClusterCacheArea
from | event | to | side-effect | |
---|---|---|---|---|
VALID | validate() |
VALID |
initial state, calling validate() won't do anything. |
|
VALID | invalidate() |
VALID |
calling invalidate() will send an INVALIDATE event and update the getLastNodeInvalidation() timestamp. |
|
VALID | INVALIDATE | INVALID |
an INVALIDATE event from other cluster nodes invalidates the cache area and updates the getLastClusterInvalidation() timestamp. |
|
INVALID | INVALIDATE | INVALID |
INVALIDATE event in INVALID state just update the getLastClusterInvalidation() timestamp. |
|
INVALID | invalidate() |
INVALID |
calling invalidate() will send an INVALIDATE event and update the getLastNodeInvalidation() timestamp. |
|
INVALID | validate() |
VALID |
calling validate() toogles the state back to VALID . |
IDMapper
.Modifier and Type | Method and Description |
---|---|
String |
getAreaID()
Get the area's ID.
|
long |
getClusterTimeout()
Get the cluster cache timeout.
|
long |
getLastClusterInvalidation()
Get the timestamp of the last (external) invalidation from other cluster
nodes.
|
long |
getLastInvalidation()
Get the timestamp of the last invalidation (internally or externally, the
later one).
|
long |
getLastNodeInvalidation()
Get the timestamp of the last (internal) invalidation from this node.
|
void |
invalidate()
Mark this cache area as invalid.
|
boolean |
isCluster()
Get the cluster's cache flag.
|
boolean |
isValid()
Check, if this cache area is marked as invalid.
|
void |
refresh(ICache cache)
Remove all expired entries from the given cache (does a
cache.removeEntriesOlderThan(getLastClusterInvalidation()) ). |
void |
validate()
Mark this cache area as valid.
|
String getAreaID()
String
, which holds the area's ID.boolean isCluster()
true
if the system is running in cluster mode.long getClusterTimeout()
long
with the system's cluster cache timeout in
msec.void validate()
INVALID
to VALID
.void refresh(ICache cache) throws CacheException
cache.removeEntriesOlderThan(getLastClusterInvalidation())
).cache
- the ICache
to remove expired entries from.CacheException
void invalidate()
boolean isValid()
true
, if state is VALID
.long getLastInvalidation()
getLastExternalInvalidation()
and
getLastInternalInvalidation()
.long getLastClusterInvalidation()
long
with the timestamp of the last incoming
INVALIDATE event.long getLastNodeInvalidation()
long
with the timestamp of the last call to
invalidate()
.Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice