JBoss Data Grid HotRod C++ Client  7.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FailOverRequestBalancingStrategy.h
Go to the documentation of this file.
1 #ifndef ISPN_HOTROD_TRANSPORT_FAILOVERREQUESTBALANCINGSTRATEGY_H
2 #define ISPN_HOTROD_TRANSPORT_FAILOVERREQUESTBALANCINGSTRATEGY_H
3 
5 #include <vector>
6 
7 namespace infinispan {
8 namespace hotrod {
9 
11 {
12  public:
13  typedef FailOverRequestBalancingStrategy* (*ProducerFn)();
14  virtual void setServers(const std::vector<ServerNameId>& servers) = 0;
15  virtual const ServerNameId& nextServer() = 0;
16 
18  private:
19  std::vector<ServerNameId> servers;
20  size_t index;
21 
22 };
23 
24 }} // namespace infinispan::hotrod::transport
25 
26 #endif /* ISPN_HOTROD_TRANSPORT_FAILOVERREQUESTBALANCINGSTRATEGY_H */
Definition: FailOverRequestBalancingStrategy.h:10
virtual const ServerNameId & nextServer()=0
virtual ~FailOverRequestBalancingStrategy()
Definition: FailOverRequestBalancingStrategy.h:17
virtual void setServers(const std::vector< ServerNameId > &servers)=0
Definition: ServerNameId.h:15