16 #ifndef HAZELCAST_CLIENT_CONFIG
17 #define HAZELCAST_CLIENT_CONFIG
19 #include "hazelcast/client/Address.h"
20 #include "hazelcast/client/GroupConfig.h"
21 #include "hazelcast/client/SerializationConfig.h"
22 #include "hazelcast/client/Credentials.h"
23 #include "hazelcast/client/SocketInterceptor.h"
24 #include "hazelcast/client/LoadBalancer.h"
25 #include "hazelcast/client/impl/RoundRobinLB.h"
26 #include "hazelcast/util/ILogger.h"
31 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
33 #pragma warning(disable: 4251) //for dll export
38 class MembershipListener;
40 class InitialMembershipListener;
42 class LifecycleListener;
77 ClientConfig& addAddresses(
const std::vector<Address>& addresses);
85 std::set<Address, addressComparator>& getAddresses();
122 ClientConfig& setConnectionAttemptLimit(
int connectionAttemptLimit);
131 int getConnectionAttemptLimit()
const;
139 ClientConfig& setConnectionTimeout(
int connectionTimeoutInMillis);
146 int getConnectionTimeout()
const;
154 ClientConfig& setAttemptPeriod(
int attemptPeriodInMillis);
161 int getAttemptPeriod()
const;
181 bool isRedoOperation()
const;
187 bool isSmart()
const;
229 const std::set<LifecycleListener *>& getLifecycleListeners()
const;
248 const std::set<MembershipListener *>& getMembershipListeners()
const;
263 const std::set<InitialMembershipListener *>& getInitialMembershipListeners()
const;
316 std::map<std::string, std::string>& getProperties();
327 ClientConfig& setProperty(
const std::string& name,
const std::string& value);
335 std::set<Address, addressComparator> addressList;
339 std::auto_ptr<impl::RoundRobinLB> defaultLoadBalancer;
341 std::set<MembershipListener *> membershipListeners;
343 std::set<InitialMembershipListener *> initialMembershipListeners;
345 std::set<LifecycleListener *> lifecycleListeners;
347 std::map<std::string, std::string> properties;
353 int connectionTimeout;
355 int connectionAttemptLimit;
363 std::auto_ptr<Credentials> defaultCredentials;
370 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Credentials is a container object for endpoint (Members and Clients) security attributes.
Definition: Credentials.h:35
Base class for socketInterceptor classes to inherit from.
Definition: SocketInterceptor.h:38
Contains the configuration for Hazelcast groups.
Definition: GroupConfig.h:36
Cluster membership listener.
Definition: MembershipListener.h:51
IP Address.
Definition: Address.h:34
SerializationConfig is used to.
Definition: SerializationConfig.h:44
Listener object for listening lifecycle events of hazelcast instance.
Definition: LifecycleListener.h:44
The InitializingMembershipListener is a MembershipListener that will first receives a InitialMembersh...
Definition: InitialMembershipListener.h:50
LoadBalancer allows you to send operations to one of a number of endpoints(Members).
Definition: LoadBalancer.h:40
HazelcastClient configuration class.
Definition: ClientConfig.h:47