1 #ifndef ISPN_HOTROD_REMOTECACHEBASE_H
2 #define ISPN_HOTROD_REMOTECACHEBASE_H
16 using namespace org::infinispan::query::remote::client;
17 using namespace infinispan::hotrod::event;
19 namespace infinispan {
22 namespace operations {
23 class OperationsFactory;
30 typedef void* (*UnmarshallHelperFn) (
void*,
const std::vector<char> &);
32 class KeyUnmarshallerFtor;
33 class ValueUnmarshallerFtor;
34 class RemoteCacheImpl;
42 HR_EXTERN void *base_get(
const void *key);
43 HR_EXTERN void *base_put(
const void *key,
const void *value, int64_t life, int64_t idle);
44 HR_EXTERN void *base_putIfAbsent(
const void *key,
const void *value, int64_t life, int64_t idle);
45 HR_EXTERN void *base_replace(
const void *key,
const void *value, int64_t life, int64_t idle);
46 HR_EXTERN void *base_remove(
const void *key);
47 HR_EXTERN bool base_containsKey(
const void *key);
49 HR_EXTERN bool base_replaceWithVersion(
const void *key,
const void *value, int64_t version, int64_t life, int64_t idle);
50 HR_EXTERN bool base_removeWithVersion(
const void *key, int64_t version);
53 HR_EXTERN void base_getBulk(
int size, std::map<void*, void*> &mbuf);
54 HR_EXTERN void base_keySet(
int scope, std::vector<void*> &sbuf);
55 HR_EXTERN void base_stats(std::map<std::string,std::string> &sbuf);
59 HR_EXTERN std::vector<unsigned char> base_execute(
const std::string &cmdName,
const std::map<std::string,std::string>& args);
62 HR_EXTERN std::vector<unsigned char> base_query_char(std::vector<unsigned char> qr,
size_t size);
64 HR_EXTERN void base_addClientListener(
ClientListener &clientListener,
const std::vector<std::vector<char> > filterFactoryParam,
const std::vector<std::vector<char> > converterFactoryParams,
const std::function<
void()> &recoveryCallback);
70 std::shared_ptr<RemoteCacheImpl> impl;
71 void *remoteCachePtr=
nullptr;
74 HR_EXTERN void baseKeyMarshall(
const void* k, std::vector<char> &buf);
75 HR_EXTERN void baseValueMarshall(
const void* v, std::vector<char> &buf);
79 HR_EXTERN void* baseKeyUnmarshall(
const std::vector<char> &buf);
80 HR_EXTERN void* baseValueUnmarshall(
const std::vector<char> &buf);
83 friend class RemoteCacheImpl;
84 friend class NearRemoteCacheImpl;
85 friend class KeyUnmarshallerFtor;
86 friend class ValueUnmarshallerFtor;
87 template <
class K,
class V>
88 friend class ::infinispan::hotrod::event::CacheClientListener;
void(* MarshallHelperFn)(void *, const void *, std::vector< char > &)
Definition: RemoteCacheBase.h:29
#define HR_EXTERN
Definition: ImportExport.h:35
Definition: CacheTopologyInfo.h:10
virtual ~RemoteCacheBase()
Definition: RemoteCacheBase.h:39
Definition: RemoteCacheManager.h:38
Definition: ClientListener.h:35
void *(* UnmarshallHelperFn)(void *, const std::vector< char > &)
Definition: RemoteCacheBase.h:30
RemoteCacheBase()
Definition: RemoteCacheBase.h:67
Definition: CacheClientListener.h:33
Definition: RemoteCacheBase.h:36
Definition: VersionedValue.h:9