8 #ifndef INCLUDE_INFINISPAN_HOTROD_COUNTEREVENT_H_
9 #define INCLUDE_INFINISPAN_HOTROD_COUNTEREVENT_H_
11 namespace infinispan {
34 counterName(counterName), oldValue(oldValue), oldState(oldState), newValue(newValue), newState(newState) {
65 counterName(counterName), action(action) {
68 counterName(counterName) {
75 const std::string counterName;
76 const std::function<void(const CounterEvent)> action;
Definition: CounterEvent.h:23
Definition: CounterEvent.h:62
CounterState
Definition: CounterEvent.h:15
Definition: CounterEvent.h:27
const std::string counterName
Definition: CounterEvent.h:40
Definition: CounterEvent.h:30
const long oldValue
Definition: CounterEvent.h:44
CounterListener(const std::string counterName, std::function< void(const CounterEvent)> action)
Definition: CounterEvent.h:64
const long newValue
Definition: CounterEvent.h:54
Definition: CounterEvent.h:19
CounterListener(const std::string counterName)
Definition: CounterEvent.h:67
virtual void onUpdate(const CounterEvent entry) const
Definition: CounterEvent.h:70
virtual ~CounterListener()
Definition: CounterEvent.h:73
const CounterState oldState
Definition: CounterEvent.h:49
const CounterState newState
Definition: CounterEvent.h:59
CounterEvent(std::string counterName, const long oldValue, const CounterState oldState, const long newValue, const CounterState newState)
Definition: CounterEvent.h:32