#include <RemoteCounterManager.h>
◆ ~RemoteCounterManager()
virtual infinispan::hotrod::RemoteCounterManager::~RemoteCounterManager |
( |
| ) |
|
|
inlinevirtual |
◆ defineCounter()
virtual bool infinispan::hotrod::RemoteCounterManager::defineCounter |
( |
std::string |
name, |
|
|
CounterConfiguration |
configuration |
|
) |
| |
|
pure virtual |
Defines a counter with the specific name
and CounterConfiguration
.
It does not overwrite existing configurations.
- Parameters
-
name | the counter name. |
configuration | the counter configuration |
- Returns
true
if successfully defined or false
if the counter exists or fails to defined.
◆ getConfiguration()
virtual CounterConfiguration infinispan::hotrod::RemoteCounterManager::getConfiguration |
( |
std::string |
counterName | ) |
|
|
pure virtual |
- Parameters
-
counterName | the counter name. |
- Returns
- the counter's
CounterConfiguration
or null
if the counter is not defined.
◆ getCounterNames()
virtual std::set< std::string > infinispan::hotrod::RemoteCounterManager::getCounterNames |
( |
| ) |
|
|
pure virtual |
Returns a set of defined counter names.
- Returns
- a set of defined counter names.
◆ getStrongCounter()
virtual std::shared_ptr< StrongCounter > infinispan::hotrod::RemoteCounterManager::getStrongCounter |
( |
std::string |
name | ) |
|
|
pure virtual |
◆ getWeakCounter()
virtual std::shared_ptr< WeakCounter > infinispan::hotrod::RemoteCounterManager::getWeakCounter |
( |
std::string |
name | ) |
|
|
pure virtual |
◆ isDefined()
virtual bool infinispan::hotrod::RemoteCounterManager::isDefined |
( |
std::string |
name | ) |
|
|
pure virtual |
- Parameters
-
- Returns
true
if the counter is defined or false
if the counter is not defined or fails to check.
◆ remove()
virtual void infinispan::hotrod::RemoteCounterManager::remove |
( |
std::string |
counterName | ) |
|
|
pure virtual |
It removes the counter from the cluster.
All instances returned by getWeakCounter(std::string) or getStrongCounter(std::tring) are destroyed and they shouldn't be used anymore. Also, the registered CounterListener are removed and they aren't invoked anymore.
- Parameters
-
counterName | The counter's name to remove. |
The documentation for this class was generated from the following file: