#include <RemoteCounterManager.h>
virtual infinispan::hotrod::RemoteCounterManager::~RemoteCounterManager |
( |
| ) |
|
|
inlinevirtual |
virtual bool infinispan::hotrod::RemoteCounterManager::defineCounter |
( |
std::string |
name, |
|
|
CounterConfiguration |
configuration |
|
) |
| |
|
pure virtual |
Defines a counter with the specific
and CounterConfiguration.
It does not overwrite existing configurations.
- Parameters
-
name | the counter name. |
configuration | the counter configuration |
- Returns
- if successfully defined or if the counter exists or fails to defined.
virtual CounterConfiguration infinispan::hotrod::RemoteCounterManager::getConfiguration |
( |
std::string |
counterName | ) |
|
|
pure virtual |
- Parameters
-
counterName | the counter name. |
- Returns
- the counter's CounterConfiguration or if the counter is not defined.
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.
virtual std::shared_ptr<StrongCounter> infinispan::hotrod::RemoteCounterManager::getStrongCounter |
( |
std::string |
name | ) |
|
|
pure virtual |
Returns the StrongCounter with that specific name.
If the StrongCounter does not exists, it is created based on the CounterConfiguration.
Note that the counter must be defined prior to this method invocation using RemoteCounterManager::defineCounter(std::string, CounterConfiguration) or via global configuration. This method only supports CounterType::BOUNDED_STRONG and CounterType::UNBOUNDED_STRONG counters.
- Parameters
-
- Returns
- the StrongCounter instance.
- Exceptions
-
org.infinispan.counter.exception.CounterException | if unable to retrieve the counter. |
org.infinispan.counter.exception.CounterConfigurationException | if the counter configuration is not valid or it does not exists. |
virtual std::shared_ptr<WeakCounter> infinispan::hotrod::RemoteCounterManager::getWeakCounter |
( |
std::string |
name | ) |
|
|
pure virtual |
Returns the WeakCounter with that specific name.
If the WeakCounter does not exists, it is created based on the CounterConfiguration.
Note that the counter must be defined prior to this method invocation using RemoteCounterManager::defineCounter(std::string, CounterConfiguration) or via global configuration. This method only supports CounterType::WEAK counters.
- Parameters
-
- Returns
- the WeakCounter instance.
- Exceptions
-
org.infinispan.counter.exception.CounterException | if unable to retrieve the counter. |
org.infinispan.counter.exception.CounterConfigurationException | if the counter configuration is not valid or it does not exists. |
virtual bool infinispan::hotrod::RemoteCounterManager::isDefined |
( |
std::string |
name | ) |
|
|
pure virtual |
- Parameters
-
- Returns
- if the counter is defined or if the counter is not defined or fails to check.
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: