1 #ifndef ISPN_HOTROD_REMOTECACHEBASE_H
2 #define ISPN_HOTROD_REMOTECACHEBASE_H
17 using namespace org::infinispan::query::remote::client;
19 namespace infinispan {
22 namespace operations {
23 class OperationsFactory;
27 typedef void* (*UnmarshallHelperFn) (
void*,
const std::vector<char> &);
29 class KeyUnmarshallerFtor;
30 class ValueUnmarshallerFtor;
36 HR_EXTERN void *base_get(
const void *key);
37 HR_EXTERN void *base_put(
const void *key,
const void *value, int64_t life, int64_t idle);
38 HR_EXTERN void *base_putIfAbsent(
const void *key,
const void *value, int64_t life, int64_t idle);
39 HR_EXTERN void *base_replace(
const void *key,
const void *value, int64_t life, int64_t idle);
40 HR_EXTERN void *base_remove(
const void *key);
41 HR_EXTERN bool base_containsKey(
const void *key);
43 HR_EXTERN bool base_replaceWithVersion(
const void *key,
const void *value, int64_t version, int64_t life, int64_t idle);
44 HR_EXTERN bool base_removeWithVersion(
const void *key, int64_t version);
53 HR_EXTERN std::vector<unsigned char> base_execute(
const std::string &cmdName,
const std::map<std::string,std::string>& args);
55 HR_EXTERN QueryResponse base_query(
const QueryRequest &qr);
56 HR_EXTERN std::vector<unsigned char> base_query_char(std::vector<unsigned char> qr,
size_t size);
67 HR_EXTERN void baseKeyMarshall(
const void* k, std::vector<char> &buf);
68 HR_EXTERN void baseValueMarshall(
const void* v, std::vector<char> &buf);
72 HR_EXTERN void* baseKeyUnmarshall(
const std::vector<char> &buf);
73 HR_EXTERN void* baseValueUnmarshall(
const std::vector<char> &buf);
76 friend class RemoteCacheImpl;
77 friend class KeyUnmarshallerFtor;
78 friend class ValueUnmarshallerFtor;
void(* MarshallHelperFn)(void *, const void *, std::vector< char > &)
Definition: RemoteCacheBase.h:26
#define HR_EXTERN
Definition: ImportExport.h:35
Definition: CacheTopologyInfo.h:10
Definition: portable.h:275
Definition: portable.h:152
Definition: RemoteCacheManager.h:39
void *(* UnmarshallHelperFn)(void *, const std::vector< char > &)
Definition: RemoteCacheBase.h:27
RemoteCacheBase()
Definition: RemoteCacheBase.h:59
Definition: RemoteCacheBase.h:32
Definition: VersionedValue.h:9