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"
27 #include "hazelcast/client/config/ReliableTopicConfig.h"
33 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
35 #pragma warning(disable: 4251) //for dll export
40 class MembershipListener;
42 class InitialMembershipListener;
44 class LifecycleListener;
79 ClientConfig& addAddresses(
const std::vector<Address>& addresses);
87 std::set<Address, addressComparator>& getAddresses();
124 ClientConfig& setConnectionAttemptLimit(
int connectionAttemptLimit);
133 int getConnectionAttemptLimit()
const;
141 ClientConfig& setConnectionTimeout(
int connectionTimeoutInMillis);
148 int getConnectionTimeout()
const;
156 ClientConfig& setAttemptPeriod(
int attemptPeriodInMillis);
163 int getAttemptPeriod()
const;
183 bool isRedoOperation()
const;
189 bool isSmart()
const;
231 const std::set<LifecycleListener *>& getLifecycleListeners()
const;
250 const std::set<MembershipListener *>& getMembershipListeners()
const;
265 const std::set<InitialMembershipListener *>& getInitialMembershipListeners()
const;
318 std::map<std::string, std::string>& getProperties();
329 ClientConfig& setProperty(
const std::string& name,
const std::string& value);
352 std::set<Address, addressComparator> addressList;
356 std::auto_ptr<impl::RoundRobinLB> defaultLoadBalancer;
358 std::set<MembershipListener *> membershipListeners;
360 std::set<InitialMembershipListener *> initialMembershipListeners;
362 std::set<LifecycleListener *> lifecycleListeners;
364 std::map<std::string, std::string> properties;
370 int connectionTimeout;
372 int connectionAttemptLimit;
380 std::auto_ptr<Credentials> defaultCredentials;
382 std::map<std::string, config::ReliableTopicConfig> reliableTopicConfigMap;
388 #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:37
Contains the configuration for Hazelcast groups.
Definition: GroupConfig.h:36
Cluster membership listener.
Definition: MembershipListener.h:51
IP Address.
Definition: Address.h:36
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:49
Definition: ReliableTopicConfig.h:30