Hazelcast C++ Client
Hazelcast C++ Client Library
aws_client.h
1 /*
2  * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <string>
19 #include <unordered_map>
20 
21 #include "hazelcast/util/export.h"
22 #include "hazelcast/client/address.h"
23 
24 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
25 #pragma warning(push)
26 #pragma warning(disable: 4251) //for dll export
27 #endif
28 
29 namespace hazelcast {
30  class logger;
31 
32  namespace client {
33  class client_properties;
34  namespace config {
35  class client_aws_config;
36  }
37  namespace aws {
38  class HAZELCAST_API aws_client {
39  public:
40  aws_client(std::chrono::steady_clock::duration timeout, config::client_aws_config &aws_config,
42 
43  std::unordered_map<address, address> get_addresses();
44 
45  private:
46 #ifdef HZ_BUILD_WITH_SSL
47  std::chrono::steady_clock::duration timeout_;
48  config::client_aws_config &aws_config_;
49  std::string endpoint_;
50  logger &logger_;
51  int aws_member_port_;
52 #endif // HZ_BUILD_WITH_SSL
53  };
54  }
55  }
56 }
57 
58 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
59 #pragma warning(pop)
60 #endif
61 
62 
Client Properties is an internal class.
The client_aws_config contains the configuration for client to connect to nodes in aws environment.