Joedb 9.6.2
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Local_Connector.h
Go to the documentation of this file.
1#ifndef joedb_Local_Connector_declared
2#define joedb_Local_Connector_declared
3
6
7namespace joedb
8{
9 /// @ingroup concurrency
11 {
12 private:
13 const std::string endpoint_path;
14
15 public:
16 Local_Connector(std::string endpoint_path):
17 endpoint_path(std::move(endpoint_path))
18 {
19 }
20
21 Local_Connector(std::string_view endpoint_path):
22 endpoint_path(endpoint_path)
23 {
24 }
25
26 Local_Connector(const char *endpoint_path):
27 Local_Connector(std::string_view(endpoint_path))
28 {
29 }
30
31 std::unique_ptr<Channel> new_channel() const override
32 {
33 return std::make_unique<Local_Channel>(endpoint_path);
34 }
35 };
36}
37
38#endif
Used by Robust_Connection to reconnect after an error.
Definition Connector.h:14
Local_Connector(std::string endpoint_path)
std::unique_ptr< Channel > new_channel() const override
Local_Connector(const char *endpoint_path)
Local_Connector(std::string_view endpoint_path)
Definition Blob.h:7