org.gridvise.coherence.cache.entity
Class AbstractCache<K,V>

java.lang.Object
  extended by org.gridvise.coherence.cache.entity.AbstractCache<K,V>
All Implemented Interfaces:
ICache<K,V>
Direct Known Subclasses:
AbstractDateSensitiveCache

public abstract class AbstractCache<K,V>
extends Object
implements ICache<K,V>


Field Summary
protected static com.tangosol.util.Filter PRESENT_FILTER
           
 
Constructor Summary
AbstractCache()
           
 
Method Summary
 void addIndex(com.tangosol.util.ValueExtractor valueExtractor)
           
protected  void addIndex(com.tangosol.util.ValueExtractor valueExtractor, com.tangosol.net.NamedCache cache)
           
protected abstract  void addIndexes(com.tangosol.net.NamedCache namedCache)
           
 void addMapListener(com.tangosol.util.MapListener mapListener)
           
 void addMapListener(com.tangosol.util.MapListener mapListener, com.tangosol.util.Filter filter)
           
 void addMapListener(com.tangosol.util.MapListener mapListener, com.tangosol.util.Filter filter, boolean lite)
           
 void addMapListener(com.tangosol.util.MapListener mapListener, K key)
           
 void addMapListener(com.tangosol.util.MapListener mapListener, K key, boolean lite)
           
 Object aggregate(Collection<K> keys, com.tangosol.util.InvocableMap.EntryAggregator aggregator)
           
 Object aggregate(com.tangosol.util.Filter filter, com.tangosol.util.InvocableMap.EntryAggregator aggregator)
           
 void clear()
           
 void clearCache()
           
<E> Collection<E>
distictSetValues(Collection<K> keys, Enum<?> setExtractMethodName)
          Returns the a set of distinct values returned form the 'extractMethodName'-method which it self extracts a collection of objects addressed by the keys.
<G,E> Map<G,Collection<E>>
distictSetValues(Collection<K> keys, Enum<?> setExtractMethodName, Enum<?> groupByExtractMethodName)
           
<E> Collection<E>
distictSetValues(com.tangosol.util.Filter filter, Enum<?> setExtractMethodName)
          Returns the a set of distinct values returned form the 'extractMethodName'-method which it self extracts a collection of objects addressed by the filter.
<G,E> Map<G,Collection<E>>
distictSetValues(com.tangosol.util.Filter filter, Enum<?> setExtractMethodName, Enum<?> groupByExtractMethodName)
           
<E> Collection<E>
distictSetValues(com.tangosol.util.Filter filter, com.tangosol.util.ValueExtractor valueExtractor)
           
<E> Collection<E>
distictValues(Collection<K> keys, Enum<?> extractMethodName)
          Returns the a set of distinct values returned form the 'extractMethodName'-method on objects addressed by the keys.
<G,E> Map<G,Collection<E>>
distictValues(Collection<K> keys, Enum<?> extractMethodName, Enum<?> groupByExtractMethodName)
           
<E> Collection<E>
distictValues(Collection<K> keys, String extractMethodName)
           
<E> Collection<E>
distictValues(com.tangosol.util.Filter filter, Enum<?> extractMethodName)
          Returns the a set of distinct values returned form the 'extractMethodName'-method on objects addressed by the filter.
<G,E> Map<G,Collection<E>>
distictValues(com.tangosol.util.Filter filter, Enum<?> extractMethodName, Enum<?> groupByExtractMethodName)
           
<E> Collection<E>
distictValues(com.tangosol.util.Filter filter, com.tangosol.util.ValueExtractor valueExtractor)
          Returns the a set of distinct values returned form the valueExtractor executed on objects addressed by the filter.
<E> Collection<E>
distictValues(com.tangosol.util.ValueExtractor valueExtractor)
          Returns the a set of distinct values returned form the extractor for all entries in the cache
 Collection<Map.Entry<K,V>> entrySet(com.tangosol.util.Filter filter)
           
 V get(K key)
           
 Map<K,V> getAll(Collection<K> keys)
           
 com.tangosol.net.NamedCache getCache()
           
abstract  String getCacheName()
           
 Object invoke(K key, com.tangosol.util.InvocableMap.EntryProcessor entryprocessor)
           
 Map<K,?> invokeAll(Collection<K> keys, com.tangosol.util.InvocableMap.EntryProcessor entryprocessor)
           
 Set<K> keySet(com.tangosol.util.Filter filter)
           
 void put(K key, V value)
           
 void putAll(Map<K,V> map)
           
 void remove(Collection<K> keys)
           
 void remove(com.tangosol.util.Filter filter)
           
 void remove(K key)
           
 void removeMapListener(com.tangosol.util.MapListener mapListener)
           
 void removeMapListener(com.tangosol.util.MapListener mapListener, com.tangosol.util.Filter filter)
           
 void removeMapListener(com.tangosol.util.MapListener mapListener, K key)
           
 int size()
           
 Collection<V> values()
           
 Map<K,V> values(com.tangosol.util.Filter filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRESENT_FILTER

protected static final com.tangosol.util.Filter PRESENT_FILTER
Constructor Detail

AbstractCache

public AbstractCache()
Method Detail

getCacheName

public abstract String getCacheName()

addIndexes

protected abstract void addIndexes(com.tangosol.net.NamedCache namedCache)

addIndex

public void addIndex(com.tangosol.util.ValueExtractor valueExtractor)
Specified by:
addIndex in interface ICache<K,V>

addMapListener

public void addMapListener(com.tangosol.util.MapListener mapListener)
Specified by:
addMapListener in interface ICache<K,V>

addMapListener

public void addMapListener(com.tangosol.util.MapListener mapListener,
                           com.tangosol.util.Filter filter,
                           boolean lite)
Specified by:
addMapListener in interface ICache<K,V>

addMapListener

public void addMapListener(com.tangosol.util.MapListener mapListener,
                           K key,
                           boolean lite)
Specified by:
addMapListener in interface ICache<K,V>

addMapListener

public void addMapListener(com.tangosol.util.MapListener mapListener,
                           com.tangosol.util.Filter filter)
Specified by:
addMapListener in interface ICache<K,V>

addMapListener

public void addMapListener(com.tangosol.util.MapListener mapListener,
                           K key)
Specified by:
addMapListener in interface ICache<K,V>

removeMapListener

public void removeMapListener(com.tangosol.util.MapListener mapListener)
Specified by:
removeMapListener in interface ICache<K,V>

removeMapListener

public void removeMapListener(com.tangosol.util.MapListener mapListener,
                              K key)
Specified by:
removeMapListener in interface ICache<K,V>

removeMapListener

public void removeMapListener(com.tangosol.util.MapListener mapListener,
                              com.tangosol.util.Filter filter)
Specified by:
removeMapListener in interface ICache<K,V>

remove

public void remove(Collection<K> keys)
Specified by:
remove in interface ICache<K,V>

remove

public void remove(K key)
Specified by:
remove in interface ICache<K,V>

remove

public void remove(com.tangosol.util.Filter filter)
Specified by:
remove in interface ICache<K,V>

clearCache

public void clearCache()

keySet

public Set<K> keySet(com.tangosol.util.Filter filter)
Specified by:
keySet in interface ICache<K,V>

entrySet

public Collection<Map.Entry<K,V>> entrySet(com.tangosol.util.Filter filter)
Specified by:
entrySet in interface ICache<K,V>

values

public Map<K,V> values(com.tangosol.util.Filter filter)
Specified by:
values in interface ICache<K,V>

values

public Collection<V> values()
Specified by:
values in interface ICache<K,V>

clear

public void clear()
Specified by:
clear in interface ICache<K,V>

size

public int size()
Specified by:
size in interface ICache<K,V>

getCache

public com.tangosol.net.NamedCache getCache()
Specified by:
getCache in interface ICache<K,V>

get

public V get(K key)
Specified by:
get in interface ICache<K,V>

getAll

public Map<K,V> getAll(Collection<K> keys)
Specified by:
getAll in interface ICache<K,V>

put

public void put(K key,
                V value)
Specified by:
put in interface ICache<K,V>

putAll

public void putAll(Map<K,V> map)
Specified by:
putAll in interface ICache<K,V>

distictValues

public <E> Collection<E> distictValues(com.tangosol.util.ValueExtractor valueExtractor)
Description copied from interface: ICache
Returns the a set of distinct values returned form the extractor for all entries in the cache

Specified by:
distictValues in interface ICache<K,V>
Returns:

distictValues

public <E> Collection<E> distictValues(com.tangosol.util.Filter filter,
                                       Enum<?> extractMethodName)
Description copied from interface: ICache
Returns the a set of distinct values returned form the 'extractMethodName'-method on objects addressed by the filter.

Specified by:
distictValues in interface ICache<K,V>
Returns:

distictValues

public <E> Collection<E> distictValues(com.tangosol.util.Filter filter,
                                       com.tangosol.util.ValueExtractor valueExtractor)
Description copied from interface: ICache
Returns the a set of distinct values returned form the valueExtractor executed on objects addressed by the filter.

Specified by:
distictValues in interface ICache<K,V>
Returns:

distictSetValues

public <E> Collection<E> distictSetValues(com.tangosol.util.Filter filter,
                                          Enum<?> setExtractMethodName)
Description copied from interface: ICache
Returns the a set of distinct values returned form the 'extractMethodName'-method which it self extracts a collection of objects addressed by the filter.

Specified by:
distictSetValues in interface ICache<K,V>
Returns:

distictSetValues

public <E> Collection<E> distictSetValues(com.tangosol.util.Filter filter,
                                          com.tangosol.util.ValueExtractor valueExtractor)

distictValues

public <E> Collection<E> distictValues(Collection<K> keys,
                                       Enum<?> extractMethodName)
Description copied from interface: ICache
Returns the a set of distinct values returned form the 'extractMethodName'-method on objects addressed by the keys.

Specified by:
distictValues in interface ICache<K,V>
Returns:

distictValues

public <E> Collection<E> distictValues(Collection<K> keys,
                                       String extractMethodName)
Specified by:
distictValues in interface ICache<K,V>

distictSetValues

public <E> Collection<E> distictSetValues(Collection<K> keys,
                                          Enum<?> setExtractMethodName)
Description copied from interface: ICache
Returns the a set of distinct values returned form the 'extractMethodName'-method which it self extracts a collection of objects addressed by the keys.

Specified by:
distictSetValues in interface ICache<K,V>
Returns:

distictValues

public <G,E> Map<G,Collection<E>> distictValues(com.tangosol.util.Filter filter,
                                                Enum<?> extractMethodName,
                                                Enum<?> groupByExtractMethodName)
Specified by:
distictValues in interface ICache<K,V>

distictSetValues

public <G,E> Map<G,Collection<E>> distictSetValues(com.tangosol.util.Filter filter,
                                                   Enum<?> setExtractMethodName,
                                                   Enum<?> groupByExtractMethodName)
Specified by:
distictSetValues in interface ICache<K,V>

distictValues

public <G,E> Map<G,Collection<E>> distictValues(Collection<K> keys,
                                                Enum<?> extractMethodName,
                                                Enum<?> groupByExtractMethodName)
Specified by:
distictValues in interface ICache<K,V>

distictSetValues

public <G,E> Map<G,Collection<E>> distictSetValues(Collection<K> keys,
                                                   Enum<?> setExtractMethodName,
                                                   Enum<?> groupByExtractMethodName)

addIndex

protected void addIndex(com.tangosol.util.ValueExtractor valueExtractor,
                        com.tangosol.net.NamedCache cache)

invoke

public Object invoke(K key,
                     com.tangosol.util.InvocableMap.EntryProcessor entryprocessor)
Specified by:
invoke in interface ICache<K,V>

invokeAll

public Map<K,?> invokeAll(Collection<K> keys,
                          com.tangosol.util.InvocableMap.EntryProcessor entryprocessor)
Specified by:
invokeAll in interface ICache<K,V>

aggregate

public Object aggregate(Collection<K> keys,
                        com.tangosol.util.InvocableMap.EntryAggregator aggregator)
Specified by:
aggregate in interface ICache<K,V>

aggregate

public Object aggregate(com.tangosol.util.Filter filter,
                        com.tangosol.util.InvocableMap.EntryAggregator aggregator)
Specified by:
aggregate in interface ICache<K,V>


Copyright © 2013. All Rights Reserved.