NearCacheManager is the contract point to manage all existing NearCache instances.
More...
#include <NearCacheManager.h>
|
| NearCacheManager (serialization::pimpl::SerializationService &ss) |
|
template<typename K , typename V , typename KS > |
boost::shared_ptr< NearCache< KS, V > > | getNearCache (const std::string &name) |
| Gets the NearCache instance associated with given. More...
|
|
template<typename K , typename V , typename KS > |
boost::shared_ptr< NearCache< KS, V > > | getOrCreateNearCache (const std::string &name, const config::NearCacheConfig< K, V > &nearCacheConfig, std::auto_ptr< adapter::DataStructureAdapter< K, V > > &dataStructureAdapter) |
| Creates a new NearCache with given configurations or returns existing one. More...
|
|
bool | clearNearCache (const std::string &name) |
| Lists all existing NearCache instances. More...
|
|
void | clearAllNearCaches () |
| Clears all defined NearCache instances.
|
|
bool | destroyNearCache (const std::string &name) |
| Destroys NearCache instance associated with given. More...
|
|
void | destroyAllNearCaches () |
| Destroys all defined NearCache instances.
|
|
|
template<typename K , typename V , typename KS > |
std::auto_ptr< NearCache< KS, V > > | createNearCache (const std::string &name, const config::NearCacheConfig< K, V > &nearCacheConfig) |
|
NearCacheManager is the contract point to manage all existing NearCache instances.
bool hazelcast::client::internal::nearcache::NearCacheManager::clearNearCache |
( |
const std::string & |
name | ) |
|
|
inline |
Lists all existing NearCache instances.
- Returns
- all existing NearCache instances Clears NearCache instance associated with given but not removes it.
- Parameters
-
- Returns
- if NearCache was found and cleared, otherwise
bool hazelcast::client::internal::nearcache::NearCacheManager::destroyNearCache |
( |
const std::string & |
name | ) |
|
|
inline |
Destroys NearCache instance associated with given.
and also removes it.
- Parameters
-
- Returns
- if NearCache was found and destroyed, otherwise
template<typename K , typename V , typename KS >
boost::shared_ptr<NearCache<KS, V> > hazelcast::client::internal::nearcache::NearCacheManager::getNearCache |
( |
const std::string & |
name | ) |
|
|
inline |
Gets the NearCache instance associated with given.
.
- Parameters
-
name | the name of the NearCache instance will be got |
<K> | the type of the key for Near Cache |
<V> | the type of the value for Near Cache |
- Returns
- the NearCache instance associated with given
template<typename K , typename V , typename KS >
Creates a new NearCache with given configurations or returns existing one.
Triggers the pre-loading of the created NearCache via the supplied DataStructureAdapter.
- Parameters
-
- Returns
- the created or existing NearCache instance associated with given
The documentation for this class was generated from the following file: