Infinispan HotRod C++ Client 9.2.0.Final
Loading...
Searching...
No Matches
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#include <set>
7
8namespace infinispan {
9namespace hotrod {
10
16{
17 public:
19 typedef FailOverRequestBalancingStrategy* (*ProducerFn)();
24 virtual void setServers(const std::vector<transport::InetSocketAddress>& servers) = 0;
29 virtual const transport::InetSocketAddress& nextServer(const std::set<transport::InetSocketAddress>& failedServers) = 0;
30
32 private:
33 std::vector<transport::InetSocketAddress> servers;
34};
35
36}} // namespace infinispan::hotrod::transport
37
38#endif /* ISPN_HOTROD_TRANSPORT_FAILOVERREQUESTBALANCINGSTRATEGY_H */
Definition: FailOverRequestBalancingStrategy.h:16
virtual ~FailOverRequestBalancingStrategy()
Definition: FailOverRequestBalancingStrategy.h:31
virtual void setServers(const std::vector< transport::InetSocketAddress > &servers)=0
virtual const transport::InetSocketAddress & nextServer(const std::set< transport::InetSocketAddress > &failedServers)=0
Definition: AuthenticationConfiguration.h:10