8 #ifndef INCLUDE_INFINISPAN_HOTROD_CONTINUOUSQUERYLISTENER_H_ 9 #define INCLUDE_INFINISPAN_HOTROD_CONTINUOUSQUERYLISTENER_H_ 29 template <
class K,
class V>
36 template <
class K,
class V>
41 : cl(rc), query(query) {}
42 const std::function<void(K, V)>& getJoiningListener()
const {
43 return joiningListener;
46 void setJoiningListener(
const std::function<
void(K, V)>& joiningListener) {
47 this->joiningListener = joiningListener;
50 const std::function<void(K, V)>& getLeavingListener()
const {
51 return leavingListener;
54 void setLeavingListener(
const std::function<
void(K, V)>& leavingListener) {
55 this->leavingListener = leavingListener;
58 const std::function<void(K, V)>& getUpdatedListener()
const {
59 return updatedListener;
62 void setUpdatedListener(
const std::function<
void(K, V)>& updatedListener) {
63 this->updatedListener = updatedListener;
66 const std::function<void()>& getFailoverListener()
const {
67 return failoverListener;
70 void setFailoverListener(
const std::function<
void()>& failoverListener) {
71 this->failoverListener = failoverListener;
74 const std::string& getQuery()
const {
77 std::function<void(ClientCacheEntryCustomEvent)> listenerCustomEvent;
82 std::function<void(K, V)> joiningListener;
83 std::function<void(K, V)> leavingListener;
84 std::function<void(K, V)> updatedListener;
85 std::function<void()> failoverListener;
88 template <
class K,
class V,
typename... Params>
93 : cl(rc), query(query) {}
95 const std::function<void(K, std::tuple<Params...>)>& getJoiningListener()
const {
96 return joiningListener;
99 void setJoiningListener(
const std::function<
void(K, std::tuple<Params...>)>& joiningListener) {
100 this->joiningListener = joiningListener;
103 const std::function<void(K, std::tuple<Params...>)>& getLeavingListener()
const {
104 return leavingListener;
107 void setLeavingListener(
const std::function<
void(K, std::tuple<Params...>)>& leavingListener) {
108 this->leavingListener = leavingListener;
111 const std::function<void(K, std::tuple<Params...>)>& getUpdatedListener()
const {
112 return updatedListener;
115 void setUpdatedListener(
const std::function<
void(K, std::tuple<Params...>)>& updatedListener) {
116 this->updatedListener = updatedListener;
119 const std::function<void()>& getFailoverListener()
const {
120 return failoverListener;
123 void setFailoverListener(
const std::function<
void()>& failoverListener) {
124 this->failoverListener = failoverListener;
127 const std::string& getQuery()
const {
130 std::function<void(ClientCacheEntryCustomEvent)> listenerCustomEvent;
135 std::function<void(K, std::tuple<Params...>)> joiningListener;
136 std::function<void(K, std::tuple<Params...>)> leavingListener;
137 std::function<void(K, std::tuple<Params...>)> updatedListener;
138 std::function<void()> failoverListener;
Definition: CacheClientListener.h:30
Definition: CacheClientListener.h:28
Definition: AuthenticationConfiguration.h:10
Definition: AuthenticationConfiguration.h:11
Definition: CacheClientListener.h:33
Definition: ContinuousQueryListener.h:34