#include <coherence/net/cache/BundlingNamedCache.hpp>
Inherits WrapperNamedCache.
Public Types | |
typedef spec::Handle | Handle |
BundlingNamedCache Handle definition. | |
typedef spec::View | View |
BundlingNamedCache View definition. | |
typedef spec::Holder | Holder |
BundlingNamedCache Holder definition. | |
typedef this_spec::Handle | Handle |
WrapperNamedCache Handle definition. | |
typedef this_spec::View | View |
WrapperNamedCache View definition. | |
typedef this_spec::Holder | Holder |
WrapperNamedCache Holder definition. | |
Public Member Functions | |
virtual AbstractBundler::Handle | ensureGetBundler (int32_t cBundleThreshold) |
Configure the bundler for the "get" operations. | |
virtual AbstractBundler::Handle | ensurePutBundler (int32_t cBundleThreshold) |
Configure the bundler for the "put" operations. | |
virtual AbstractBundler::Handle | ensureRemoveBundler (int32_t cBundleThreshold) |
Configure the bundler for the "remove" operations. | |
virtual AbstractBundler::Handle | getGetBundler () |
Obtain the bundler for the "get" operations. | |
virtual AbstractBundler::Handle | getPutBundler () |
Obtain the bundler for the "put" operations. | |
virtual AbstractBundler::Handle | getRemoveBundler () |
Obtain the bundler for the "remove" operations. | |
virtual Object::Holder | get (Object::View vKey) |
virtual Map::View | getAll (Collection::View vColKeys) |
virtual Object::Holder | put (Object::View vKey, Object::Holder ohValue) |
virtual void | putAll (Map::View vMap) |
virtual Object::Holder | remove (Object::View vKey) |
virtual void | release () |
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 afterward will result in an exception. Caches should be released by the same mechanism in which they were obtained. For example:
| |
virtual void | destroy () |
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. Caches should be destroyed by the same mechanism in which they were obtained. For example:
| |
Protected Member Functions | |
BundlingNamedCache (NamedCache::Handle hCache) | |
Construct a BundlingNamedCache based on the specified NamedCache. |
BundlingNamedCache | ( | NamedCache::Handle | hCache | ) | [protected] |
Construct a BundlingNamedCache based on the specified NamedCache.
hCache | the NamedCache that will be wrapped by this BundlingNamedCache |
virtual AbstractBundler::Handle ensureGetBundler | ( | int32_t | cBundleThreshold | ) | [virtual] |
Configure the bundler for the "get" operations.
If the bundler does not exist and bundling is enabled, it will be instantiated.
cBundleThreshold | the bundle size threshold; pass zero to disable "get" operation bundling |
virtual AbstractBundler::Handle ensurePutBundler | ( | int32_t | cBundleThreshold | ) | [virtual] |
Configure the bundler for the "put" operations.
If the bundler does not exist and bundling is enabled, it will be instantiated.
cBundleThreshold | the bundle size threshold; pass zero to disable "put" operation bundling |
virtual AbstractBundler::Handle ensureRemoveBundler | ( | int32_t | cBundleThreshold | ) | [virtual] |
Configure the bundler for the "remove" operations.
If the bundler does not exist and bundling is enabled, it will be instantiated.
cBundleThreshold | the bundle size threshold; pass zero to disable "remove" operation bundling |
virtual AbstractBundler::Handle getGetBundler | ( | ) | [virtual] |
Obtain the bundler for the "get" operations.
virtual AbstractBundler::Handle getPutBundler | ( | ) | [virtual] |
Obtain the bundler for the "put" operations.
virtual AbstractBundler::Handle getRemoveBundler | ( | ) | [virtual] |
Obtain the bundler for the "remove" operations.
virtual Object::Holder put | ( | Object::View | vKey, | |
Object::Holder | ohValue | |||
) | [virtual] |
Note: this method always returns NULL.
Reimplemented from WrapperNamedCache.
virtual Object::Holder remove | ( | Object::View | vKey | ) | [virtual] |
Note: this method always returns NULL.
Reimplemented from WrapperNamedCache.