@@ -46,7 +46,7 @@ class EXPORT_DECL StreamingClient {
46
46
int64_t offset, bool resubscribe, const VectorSP &filter,
47
47
bool msgAsTable, bool allowExists, int batchSize,
48
48
std::string userName, std::string password,
49
- const StreamDeserializerSP &blobDeserializer, const std::vector<std::string>& backupSites, bool isEvent, int resubTimeout , bool subOnce, bool convertMsgRowData);
49
+ const StreamDeserializerSP &blobDeserializer, const std::vector<std::string>& backupSites, bool isEvent, int resubscribeInterval , bool subOnce, bool convertMsgRowData, int resubscribeTimeout );
50
50
void unsubscribeInternal (std::string host, int port, std::string tableName, std::string actionName = DEFAULT_ACTION_NAME);
51
51
52
52
protected:
@@ -58,7 +58,7 @@ class EXPORT_DECL EventClient : public StreamingClient{
58
58
public:
59
59
EventClient (const std::vector<EventSchema>& eventSchema, const std::vector<std::string>& eventTimeFields, const std::vector<std::string>& commonFields);
60
60
ThreadSP subscribe (const std::string& host, int port, const EventMessageHandler &handler, const std::string& tableName, const std::string& actionName = DEFAULT_ACTION_NAME, int64_t offset = -1 ,
61
- bool resub = true , const std::string& userName=" " , const std::string& password=" " );
61
+ bool resub = true , const std::string& userName=" " , const std::string& password=" " , int resubscribeTimeout= 0 );
62
62
void unsubscribe (const std::string& host, int port, const std::string& tableName, const std::string& actionName = DEFAULT_ACTION_NAME);
63
63
64
64
private:
@@ -76,13 +76,13 @@ class EXPORT_DECL ThreadedClient : public StreamingClient {
76
76
std::string actionName = DEFAULT_ACTION_NAME, int64_t offset = -1 , bool resub = true ,
77
77
const VectorSP &filter = nullptr , bool msgAsTable = false , bool allowExists = false ,
78
78
std::string userName=" " , std::string password=" " ,
79
- const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(),int resubTimeout = 100, bool subOnce = false);
79
+ const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(),int resubscribeInterval = 100, bool subOnce = false, int resubscribeTimeout = 0 );
80
80
ThreadSP subscribe (std::string host, int port, const MessageBatchHandler &handler, std::string tableName,
81
81
std::string actionName = DEFAULT_ACTION_NAME, int64_t offset = -1 , bool resub = true ,
82
82
const VectorSP &filter = nullptr , bool allowExists = false , int batchSize = 1 ,
83
83
double throttle = 1 ,bool msgAsTable = false ,
84
84
std::string userName = " " , std::string password = " " ,
85
- const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(),int resubTimeout = 100,bool subOnce = false);
85
+ const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(),int resubscribeInterval = 100,bool subOnce = false, int resubscribeTimeout = 0 );
86
86
size_t getQueueDepth (const ThreadSP &thread);
87
87
void unsubscribe (std::string host, int port, std::string tableName, std::string actionName = DEFAULT_ACTION_NAME);
88
88
};
@@ -97,7 +97,7 @@ class EXPORT_DECL ThreadPooledClient : public StreamingClient {
97
97
std::string actionName, int64_t offset = -1 , bool resub = true ,
98
98
const VectorSP &filter = nullptr , bool msgAsTable = false , bool allowExists = false ,
99
99
std::string userName = " " , std::string password = " " ,
100
- const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(), int resubTimeout = 100, bool subOnce = false);
100
+ const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(), int resubscribeInterval = 100, bool subOnce = false, int resubscribeTimeout = 0 );
101
101
void unsubscribe (std::string host, int port, std::string tableName, std::string actionName = DEFAULT_ACTION_NAME);
102
102
size_t getQueueDepth (const ThreadSP &thread);
103
103
@@ -115,7 +115,7 @@ class EXPORT_DECL PollingClient : public StreamingClient {
115
115
int64_t offset = -1 , bool resub = true , const VectorSP &filter = nullptr ,
116
116
bool msgAsTable = false , bool allowExists = false ,
117
117
std::string userName=" " , std::string password=" " ,
118
- const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(), int resubTimeout = 100, bool subOnce = false);
118
+ const StreamDeserializerSP &blobDeserializer = nullptr , const std::vector<std::string>& backupSites = std::vector<std::string>(), int resubscribeInterval = 100, bool subOnce = false, int resubscribeTimeout = 0 );
119
119
void unsubscribe (std::string host, int port, std::string tableName, std::string actionName = DEFAULT_ACTION_NAME);
120
120
};
121
121
0 commit comments