#include <coherence/util/ConverterCollections.hpp>
Inherits ConverterCollections::ConverterCacheMap, and NamedCache.
Public Types | |
typedef spec::Handle | Handle |
ConverterNamedCache Handle definition. | |
typedef spec::View | View |
ConverterNamedCache View definition. | |
typedef spec::Holder | Holder |
ConverterNamedCache Holder definition. | |
Public Member Functions | |
virtual String::View | getCacheName () const |
Return the cache name. | |
virtual CacheService::Handle | getCacheService () |
Return the CacheService that this NamedCache is a part of. | |
virtual CacheService::View | getCacheService () const |
Return the CacheService that this NamedCache is a part of. | |
virtual bool | isActive () const |
Specifies whether or not the NamedCache is active. | |
virtual void | release () |
Release local resources associated with this instance of NamedCache. | |
virtual void | destroy () |
Release and destroy this instance of NamedCache. | |
virtual bool | lock (Object::View vKey, int64_t cWait) const |
virtual bool | lock (Object::View vKey) const |
virtual bool | unlock (Object::View vKey) const |
virtual Object::Holder | invoke (Object::View vKey, InvocableMap::EntryProcessor::Handle hAgent) |
virtual Map::View | invokeAll (Collection::View vCollKeys, InvocableMap::EntryProcessor::Handle hAgent) |
virtual Map::View | invokeAll (Filter::View vFilter, InvocableMap::EntryProcessor::Handle hAgent) |
virtual Object::Holder | aggregate (Collection::View vCollKeys, InvocableMap::EntryAggregator::Handle hAgent) const |
virtual Object::Holder | aggregate (Filter::View vFilter, InvocableMap::EntryAggregator::Handle hAgent) const |
virtual Set::View | keySet (Filter::View vFilter) const |
virtual Set::View | entrySet (Filter::View vFilter) const |
virtual Set::View | entrySet (Filter::View vFilter, Comparator::View vComparator) const |
virtual void | addIndex (ValueExtractor::View vExtractor, bool fOrdered, Comparator::View vComparator) |
virtual void | removeIndex (ValueExtractor::View vExtractor) |
virtual NamedCache::View | getNamedCache () const |
Return the underlying InvocableMap. | |
virtual NamedCache::Handle | getNamedCache () |
Return the underlying CacheMap. | |
virtual ConcurrentMap::View | getConcurrentMap () const |
Return the underlying ConcurrentMap. | |
virtual ConcurrentMap::Handle | getConcurrentMap () |
Return the underlying ConcurrentMap. | |
virtual InvocableMap::View | getInvocableMap () const |
Return the underlying InvocableMap. | |
virtual InvocableMap::Handle | getInvocableMap () |
Return the underlying InvocableMap. | |
virtual QueryMap::View | getQueryMap () const |
Return the underlying QueryMap. | |
virtual QueryMap::Handle | getQueryMap () |
Return the underlying QueryMap. | |
Protected Member Functions | |
ConverterNamedCache (NamedCache::Handle hMapDelegate, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | |
Create a ConverterQueryMap which delegates to the s pecified QueryMap. | |
ConverterNamedCache (NamedCache::View vMapDelegate, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | |
Create a ConverterQueryMap which delegates to the s pecified QueryMap. | |
Protected Attributes | |
FinalHolder < ConverterConcurrentMap > | f_ohMapConcurrent |
A Converter ConcurrentMap around the underlying NamedCache. | |
FinalHolder < ConverterInvocableMap > | f_ohMapInvocable |
A Converter InvocableMap around the underlying NamedCache. | |
FinalHolder < ConverterQueryMap > | f_ohMapQuery |
A Converter QueryMap around the underlying NamedCache. |
ConverterNamedCache | ( | NamedCache::Handle | hMapDelegate, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterQueryMap which delegates to the s pecified QueryMap.
hMap | the specified InvocableMap | |
vConvUp | the EntryConverter from the underlying Map | |
vConvDown | the EntryConverter to the underlying Map |
ConverterNamedCache | ( | NamedCache::View | vMapDelegate, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterQueryMap which delegates to the s pecified QueryMap.
vMap | the specified InvocableMap | |
vConvUp | the EntryConverter from the underlying Map | |
vConvDown | the EntryConverter to the underlying Map |
virtual String::View getCacheName | ( | ) | const [virtual] |
virtual CacheService::Handle getCacheService | ( | ) | [virtual] |
Return the CacheService that this NamedCache is a part of.
Implements NamedCache.
virtual CacheService::View getCacheService | ( | ) | const [virtual] |
Return the CacheService that this NamedCache is a part of.
Implements NamedCache.
virtual bool isActive | ( | ) | const [virtual] |
Specifies whether or not the NamedCache is active.
Implements NamedCache.
virtual void release | ( | ) | [virtual] |
Release local resources associated with this instance of NamedCache.
Releasing a cache makes it no longer usable, but does not affect the cache itself. In other words, all other references to the cache will still be valid, and the cache data is not affected by releasing the reference. Any attempt to use this reference afterword will result in an exception.
Implements NamedCache.
virtual void destroy | ( | ) | [virtual] |
Release and destroy this instance of NamedCache.
Warning: This method is used to completely destroy the specified cache across the cluster. All references in the entire cluster to this cache will be invalidated, the cached data will be cleared, and all resources will be released.
Implements NamedCache.
virtual NamedCache::View getNamedCache | ( | ) | const [virtual] |
Return the underlying InvocableMap.
virtual NamedCache::Handle getNamedCache | ( | ) | [virtual] |
virtual ConcurrentMap::View getConcurrentMap | ( | ) | const [virtual] |
Return the underlying ConcurrentMap.
virtual ConcurrentMap::Handle getConcurrentMap | ( | ) | [virtual] |
Return the underlying ConcurrentMap.
virtual InvocableMap::View getInvocableMap | ( | ) | const [virtual] |
Return the underlying InvocableMap.
virtual InvocableMap::Handle getInvocableMap | ( | ) | [virtual] |
Return the underlying InvocableMap.
virtual QueryMap::View getQueryMap | ( | ) | const [virtual] |
Return the underlying QueryMap.
virtual QueryMap::Handle getQueryMap | ( | ) | [virtual] |
Return the underlying QueryMap.