#include <coherence/util/ConverterCollections.hpp>
Inherits ConverterCollections::ConverterObservableMap, and CacheMap.
Inherited by ConverterCollections::ConverterNamedCache.
Public Types | |||||||||||||
typedef spec::Handle | Handle | ||||||||||||
ConverterCacheMap Handle definition. | |||||||||||||
typedef spec::View | View | ||||||||||||
ConverterCacheMap View definition. | |||||||||||||
typedef spec::Holder | Holder | ||||||||||||
ConverterCacheMap Holder definition. | |||||||||||||
Public Member Functions | |||||||||||||
virtual Map::View | getAll (Collection::View vKeys) const | ||||||||||||
virtual Object::Holder | put (Object::View vKey, Object::Holder ohValue, int64_t cMillis) | ||||||||||||
Associates the specified value with the specified key in this cache. If the cache previously contained a mapping for this key, the old value is replaced. This variation of the put(Object::View, Object::View) method allows the caller to specify an expiry (or "time to live") for the cache entry.
| |||||||||||||
virtual void | putAll (Map::View vMap) | ||||||||||||
Copy all of the mappings from the specified map to this map.
The effect of this call is equivalent to that of calling put(k, v) on this map once for each mapping from key
| |||||||||||||
virtual CacheMap::View | getCacheMap () const | ||||||||||||
Return the underlying CacheMap. | |||||||||||||
virtual CacheMap::Handle | getCacheMap () | ||||||||||||
Return the underlying CacheMap. | |||||||||||||
Protected Member Functions | |||||||||||||
ConverterCacheMap (CacheMap::Handle hMapDelegate, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | |||||||||||||
Create a ConverterCacheMap which delegates to the specified CacheMap. | |||||||||||||
ConverterCacheMap (CacheMap::View vMapDelegate, EntryConverter::View vConvUp, EntryConverter::View vConvDown) | |||||||||||||
Create a ConverterCacheMap which delegates to the specified CacheMap. |
ConverterCacheMap | ( | CacheMap::Handle | hMapDelegate, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterCacheMap which delegates to the specified CacheMap.
hMap | the specified CacheMap | |
vConvUp | the EntryConverter from the underlying Map | |
vConvDown | the EntryConverter to the underlying Map |
ConverterCacheMap | ( | CacheMap::View | vMapDelegate, | |
EntryConverter::View | vConvUp, | |||
EntryConverter::View | vConvDown | |||
) | [protected] |
Create a ConverterCacheMap which delegates to the specified CacheMap.
vMap | the specified CacheMap | |
vConvUp | the EntryConverter from the underlying Map | |
vConvDown | the EntryConverter to the underlying Map |
virtual CacheMap::View getCacheMap | ( | ) | const [virtual] |
Return the underlying CacheMap.
virtual CacheMap::Handle getCacheMap | ( | ) | [virtual] |
Return the underlying CacheMap.