|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.cache.CachingMap
com.tangosol.net.cache.NearCache
com.tangosol.net.cache.VersionedNearCache
Deprecated. as of Coherence 3.2 all the functionality of this class has been superceded by the NearCache implementation
public class VersionedNearCache
A near cache that fronts a Distributed Cache and uses a Replicated Cache of version data to keep the local cache in sync.
| Nested Class Summary | |
|---|---|
class |
VersionedNearCache.VersionCacheListenerDeprecated. A map listener that listens to the VersionCache and invalidates local entries accordingly. |
| Nested classes/interfaces inherited from class com.tangosol.net.cache.NearCache |
|---|
NearCache.BackServiceListener |
| Nested classes/interfaces inherited from class com.tangosol.net.cache.CachingMap |
|---|
CachingMap.BackMapListener, CachingMap.FrontMapListener |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry |
| Nested classes/interfaces inherited from interface com.tangosol.util.QueryMap |
|---|
QueryMap.Entry |
| Nested classes/interfaces inherited from interface com.tangosol.util.InvocableMap |
|---|
InvocableMap.Entry, InvocableMap.EntryAggregator, InvocableMap.EntryProcessor, InvocableMap.ParallelAwareAggregator |
| Field Summary |
|---|
| Fields inherited from class com.tangosol.net.cache.NearCache |
|---|
m_listenerBackService, m_service, m_sName |
| Fields inherited from class com.tangosol.net.cache.CachingMap |
|---|
LISTEN_ALL, LISTEN_AUTO, LISTEN_LOGICAL, LISTEN_NONE, LISTEN_PRESENT, m_nStrategyCurrent, m_nStrategyTarget |
| Fields inherited from interface com.tangosol.net.cache.CacheMap |
|---|
EXPIRY_DEFAULT, EXPIRY_NEVER |
| Fields inherited from interface com.tangosol.util.ConcurrentMap |
|---|
LOCK_ALL |
| Constructor Summary | |
|---|---|
VersionedNearCache(java.util.Map mapLocal, NamedCache mapDist, NamedCache mapVersion)Deprecated. Construct a VersionedNearCache. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object oKey)Deprecated. Returns the value to which this map maps the specified key. |
java.util.Map |
getAll(java.util.Collection colKeys)Deprecated. Get all the specified keys, if they are in the cache. |
NamedCache |
getVersionCache()Deprecated. Obtain the NamedCache object that holds the version data. |
protected void |
incrementVersion(java.lang.Object oKey, java.lang.Object oValue)Deprecated. Increment value's version. |
protected MapListener |
instantiateVersionCacheListener()Deprecated. Factory method: Provide a MapListener that listens to the VersionCache and invalidates local entries accordingly. |
boolean |
lock(java.lang.Object oKey, long lMillis)Deprecated. Attempt to lock the specified item within the specified period of time. |
java.lang.Object |
put(java.lang.Object oKey, java.lang.Object oValue, boolean fReturn, long cMillis)Deprecated. Implementation of put method that optionally skips the return value retrieval and allows to specify an expiry for the cache entry. |
void |
putAll(java.util.Map map)Deprecated. Copy all of the mappings from the specified map to this map. |
void |
release()Deprecated. Invalidate the CachingMap. |
java.lang.Object |
remove(java.lang.Object oKey)Deprecated. Removes the mapping for this key from this map if present. |
boolean |
unlock(java.lang.Object oKey)Deprecated. Unlock the specified item. |
protected void |
updateVersion(java.lang.Object oKey, java.lang.Object oValue)Deprecated. Update value's version in the version cache. |
| Methods inherited from class com.tangosol.net.cache.NearCache |
|---|
addIndex, addMapListener, addMapListener, addMapListener, aggregate, aggregate, destroy, entrySet, entrySet, getBackCache, getCacheName, getCacheService, getContextClassLoader, getRegistrationContext, invoke, invokeAll, invokeAll, isActive, keySet, lock, put, registerBackServiceListener, release, removeIndex, removeMapListener, removeMapListener, removeMapListener, setContextClassLoader, setRegistrationContext, unregisterBackServiceListener |
| Methods inherited from interface com.tangosol.net.cache.CacheMap |
|---|
put |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size, values |
| Methods inherited from interface com.tangosol.util.ConcurrentMap |
|---|
clear, containsKey, containsValue, isEmpty, put, size |
| Constructor Detail |
|---|
public VersionedNearCache(java.util.Map mapLocal,
NamedCache mapDist,
NamedCache mapVersion)
mapLocal - local cache to front the distributed cache withmapDist - distributed cache of Versionable objectsmapVersion - replicated version cache| Method Detail |
|---|
public void release()
release in interface NamedCacherelease in class NearCacheCacheFactory.releaseCache(NamedCache), ConfigurableCacheFactory.releaseCache(NamedCache)public java.lang.Object get(java.lang.Object oKey)
get in interface ConcurrentMapget in interface java.util.Mapget in class CachingMapoKey - the key objectConcurrentMap.containsKey(Object)public java.util.Map getAll(java.util.Collection colKeys)
Note: this implementation does not differentiate between missing keys or null values stored in the back map; in both cases the returned map will not contain the corresponding entry.
getAll in interface CacheMapgetAll in class CachingMapcolKeys - a collection of keys that may be in the named cachepublic java.lang.Object remove(java.lang.Object oKey)
remove in interface ConcurrentMapremove in interface java.util.Mapremove in class CachingMapoKey - key whose mapping is to be removed from the map
public java.lang.Object put(java.lang.Object oKey,
java.lang.Object oValue,
boolean fReturn,
long cMillis)
put in class CachingMapoKey - the keyoValue - the valuefReturn - if true, the return value is required; otherwise the return value will be ignoredcMillis - the number of milliseconds until the cache entry will expirejava.lang.UnsupportedOperationException - if the requested expiry is a positive value and either the front map or the back map implementations do not support the expiration functionalityCacheMap.put(Object oKey, Object oValue, long cMillis)public void putAll(java.util.Map map)
putAll in interface ConcurrentMapputAll in interface java.util.MapputAll in class CachingMapmap - mappings to be stored in this map
protected void updateVersion(java.lang.Object oKey,
java.lang.Object oValue)
protected void incrementVersion(java.lang.Object oKey,
java.lang.Object oValue)
public boolean lock(java.lang.Object oKey,
long lMillis)
lock in interface ConcurrentMaplock in class NearCacheoKey - key being lockedlMillis - the number of milliseconds to continue trying to obtain a lock; pass zero to return immediately; pass -1 to block the calling thread until the lock could be obtainedpublic boolean unlock(java.lang.Object oKey)
unlock in interface ConcurrentMapunlock in class NearCacheoKey - key being unlockedprotected MapListener instantiateVersionCacheListener()
public NamedCache getVersionCache()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||