Infinispan HotRod C++ Client  8.3.1.Final
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
infinispan::hotrod::Counter Class Referenceabstract

#include <Counters.h>

Inheritance diagram for infinispan::hotrod::Counter:
infinispan::hotrod::StrongCounter infinispan::hotrod::WeakCounter

Public Member Functions

virtual std::string getName ()=0
 
virtual CounterConfiguration getConfiguration ()=0
 
virtual void reset ()=0
 
virtual void remove ()=0
 
virtual const void * addListener (const event::CounterListener *listener)=0
 
virtual void removeListener (const void *handler)=0
 

Member Function Documentation

virtual const void* infinispan::hotrod::Counter::addListener ( const event::CounterListener listener)
pure virtual

Adds a listener for this counter

Returns
An handler needed to remove it removeListener(const void*)
virtual CounterConfiguration infinispan::hotrod::Counter::getConfiguration ( )
pure virtual
Returns
the CounterConfiguration used by this counter.
virtual std::string infinispan::hotrod::Counter::getName ( )
pure virtual
Returns
The counter name.
virtual void infinispan::hotrod::Counter::remove ( )
pure virtual

It removes this counter from the cluster.

Note that it doesn't remove the counter from the RemoteCounterManager. If you want to remove the counter from the RemoteCounterManager use RemoteCounterManager#remove(std::string).

virtual void infinispan::hotrod::Counter::removeListener ( const void *  handler)
pure virtual

Remove a counter listener

Parameters
handlerthe handler to the listener to be removed
virtual void infinispan::hotrod::Counter::reset ( )
pure virtual

Resets the counter to its initial value.


The documentation for this class was generated from the following file: