|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.util.AbstractKeyBasedMap
com.tangosol.util.AbstractKeySetBasedMap
com.tangosol.util.WrapperObservableMap
com.tangosol.util.WrapperConcurrentMap
com.tangosol.net.cache.WrapperNamedCache
com.tangosol.net.cache.BundlingNamedCache
public class BundlingNamedCache
Bundling NamedCache implementation.
AbstractBundler
Nested Class Summary | |
---|---|
protected class |
BundlingNamedCache.GetBundler
|
protected class |
BundlingNamedCache.PutBundler
|
protected class |
BundlingNamedCache.RemoveBundler
|
Nested classes/interfaces inherited from class com.tangosol.util.WrapperConcurrentMap |
---|
WrapperConcurrentMap.Lock |
Nested classes/interfaces inherited from class com.tangosol.util.WrapperObservableMap |
---|
WrapperObservableMap.InternalListener |
Nested classes/interfaces inherited from class com.tangosol.util.AbstractKeySetBasedMap |
---|
AbstractKeySetBasedMap.EntrySet, AbstractKeySetBasedMap.KeyIterator, AbstractKeySetBasedMap.KeySet, AbstractKeySetBasedMap.ValuesCollection |
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.WrapperNamedCache |
---|
m_service, m_sName |
Fields inherited from class com.tangosol.util.WrapperConcurrentMap |
---|
m_cWaitMillis, m_fEnforceLocking, m_gateMap, m_mapLock |
Fields inherited from class com.tangosol.util.WrapperObservableMap |
---|
m_listenerInternal, m_listenerSupport, m_map, m_stats |
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 | |
---|---|
BundlingNamedCache(NamedCache cache)
Construct a BundlingNamedCache based on the specified NamedCache. |
Method Summary | |
---|---|
AbstractBundler |
ensureGetBundler(int cBundleThreshold)
Configure the bundler for the "get" operations. |
AbstractBundler |
ensurePutBundler(int cBundleThreshold)
Configure the bundler for the "put" operations. |
AbstractBundler |
ensureRemoveBundler(int cBundleThreshold)
Configure the bundler for the "remove" operations. |
Object |
get(Object oKey)
Returns the value to which this map maps the specified key. |
Map |
getAll(Collection colKeys)
Get all the specified keys, if they are in the Map. For each key that is in the cache, that key and its corresponding value will be placed in the map that is returned by this method. The absence of a key in the returned map indicates that it was not in the cache, which may imply (for caches that can load behind the scenes) that the requested data could not be loaded. |
AbstractBundler |
getGetBundler()
Obtain the bundler for the "get" operations. |
AbstractBundler |
getPutBundler()
Obtain the bundler for the "put" operations. |
AbstractBundler |
getRemoveBundler()
Obtain the bundler for the "remove" operations. |
Object |
put(Object oKey,
Object oValue)
Associates the specified value with the specified key in this map. |
void |
putAll(Map map)
Copies all of the mappings from the specified map to this map. The effect of this call is equivalent to that of calling AbstractKeyBasedMap.put(java.lang.Object, java.lang.Object)
on this map once for each mapping in the passed map. The behavior of
this operation is unspecified if the passed map is modified while the
operation is in progress. |
Object |
remove(Object oKey)
Removes the mapping for this key from this map if present. Expensive: updates both the underlying cache and the local cache. |
Methods inherited from class com.tangosol.net.cache.WrapperNamedCache |
---|
addIndex, aggregate, aggregate, destroy, entrySet, entrySet, getCacheName, getCacheService, invoke, invokeAll, invokeAll, isActive, keySet, put, release, removeIndex |
Methods inherited from class com.tangosol.util.WrapperConcurrentMap |
---|
clear, getDescription, getLockDescription, getWaitMillis, instantiateLock, isInternalKeySetIteratorMutable, isLockingEnforced, lock, lock, removeBlind, setLockingEnforced, setWaitMillis, toString, unlock |
Methods inherited from class com.tangosol.util.WrapperObservableMap |
---|
addMapListener, addMapListener, addMapListener, containsValue, dispatchEvent, dispatchPendingEvent, getCacheStatistics, getInternalKeySet, getMap, getMapListenerSupport, hasListeners, instantiateInternalListener, isCollectStats, isEventFabricator, isSynthetic, isTranslateEvents, removeMapListener, removeMapListener, removeMapListener, setCollectStats, setTranslateEvents |
Methods inherited from class com.tangosol.util.AbstractKeySetBasedMap |
---|
containsKey, instantiateEntrySet, instantiateKeyIterator, instantiateKeySet, instantiateValues, isEmpty, iterateKeys, size |
Methods inherited from class com.tangosol.util.AbstractKeyBasedMap |
---|
clone, entrySet, equals, hashCode, keySet, values |
Methods inherited from interface com.tangosol.util.ConcurrentMap |
---|
clear, containsKey, containsValue, isEmpty, lock, lock, size, unlock |
Constructor Detail |
---|
public BundlingNamedCache(NamedCache cache)
cache
- the NamedCache that will be wrapped by this BundlingNamedCacheMethod Detail |
---|
public AbstractBundler ensureGetBundler(int cBundleThreshold)
cBundleThreshold
- the bundle size threshold; pass zero to disable
"get" operation bundling
public AbstractBundler ensurePutBundler(int cBundleThreshold)
cBundleThreshold
- the bundle size threshold; pass zero to disable
"put" operation bundling
public AbstractBundler ensureRemoveBundler(int cBundleThreshold)
cBundleThreshold
- the bundle size threshold; pass zero to disable
"remove" operation bundling
public AbstractBundler getGetBundler()
public AbstractBundler getPutBundler()
public AbstractBundler getRemoveBundler()
public Object get(Object oKey)
get
in interface ConcurrentMap
get
in interface Map
get
in class WrapperObservableMap
oKey
- the key object
ConcurrentMap.containsKey(Object)
public Map getAll(Collection colKeys)
getAll
in interface CacheMap
getAll
in class WrapperNamedCache
colKeys
- a collection of keys that may be in the named cache
public Object put(Object oKey, Object oValue)
Note: this method always returns null.
put
in interface CacheMap
put
in interface ConcurrentMap
put
in interface Map
put
in class WrapperConcurrentMap
oKey
- key with which the specified value is to be associatedoValue
- value to be associated with the specified key
public void putAll(Map map)
AbstractKeyBasedMap.put(java.lang.Object, java.lang.Object)
on this map once for each mapping in the passed map. The behavior of
this operation is unspecified if the passed map is modified while the
operation is in progress.
putAll
in interface ConcurrentMap
putAll
in interface Map
putAll
in class WrapperConcurrentMap
map
- the Map containing the key/value pairings to put into this
Mappublic Object remove(Object oKey)
Note: this method always returns null.
remove
in interface ConcurrentMap
remove
in interface Map
remove
in class WrapperConcurrentMap
oKey
- key whose mapping is to be removed from the map
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |