|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| 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_fTranslateEvents, 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. |
java.lang.Object |
get(java.lang.Object oKey)
Returns the value to which this map maps the specified key. |
java.util.Map |
getAll(java.util.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. |
java.lang.Object |
put(java.lang.Object oKey,
java.lang.Object oValue)
Associates the specified value with the specified key in this map. |
void |
putAll(java.util.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. |
java.lang.Object |
remove(java.lang.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.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 BundlingNamedCache| Method 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 java.lang.Object get(java.lang.Object oKey)
get in interface ConcurrentMapget in interface java.util.Mapget in class WrapperObservableMapoKey - the key object
ConcurrentMap.containsKey(Object)public java.util.Map getAll(java.util.Collection colKeys)
getAll in interface CacheMapgetAll in class WrapperNamedCachecolKeys - a collection of keys that may be in the named cache
public java.lang.Object put(java.lang.Object oKey,
java.lang.Object oValue)
Note: this method always returns null.
put in interface CacheMapput in interface ConcurrentMapput in interface java.util.Mapput in class WrapperConcurrentMapoKey - key with which the specified value is to be associatedoValue - value to be associated with the specified key
public void putAll(java.util.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 ConcurrentMapputAll in interface java.util.MapputAll in class WrapperConcurrentMapmap - the Map containing the key/value pairings to put into this
Mappublic java.lang.Object remove(java.lang.Object oKey)
Note: this method always returns null.
remove in interface ConcurrentMapremove in interface java.util.Mapremove in class WrapperConcurrentMapoKey - key whose mapping is to be removed from the map
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||