5 #ifndef _MigratoryDataClient_h_included_ 6 #define _MigratoryDataClient_h_included_ 87 namespace migratorydata
105 PushClientImpl* clientImpl;
163 const std::string NOTIFY_SUBSCRIBE_TIMEOUT;
260 #if !defined (SSL_DISABLED) 261 void setEncryption(
bool encryption);
342 void setServers(std::vector<std::string>& servers);
366 void subscribe(std::vector<std::string>& subjects);
400 void subscribeWithConflation(std::vector<std::string>& subjects,
int conflationMillis);
410 void unsubscribe(std::vector<std::string>& subjects);
426 void setEntitlementToken(std::string& token);
433 void getSubjects(std::vector<std::string>& subjects);
442 void notifyBeforeReconnectRetries(
int n);
452 void notifyWhenReconnectRateExceedsThreshold(
int n);
500 void setQuickReconnectInitialDelay(
int seconds);
507 void setQuickReconnectMaxRetries(
int retries);
520 void setReconnectPolicy(std::string policy);
530 void setReconnectTimeInterval(
int seconds);
539 void setReconnectMaxDelay(
int seconds);
572 #endif // _MigratoryDataClient_h_included_ const std::string NOTIFY_SUBSCRIBE_DENY
Indicate that the client was not authorized to subscribe to a subject.
Definition: MigratoryDataClient.h:161
Enumerate the MigratoryData logging levels.
const std::string NOTIFY_DATA_SYNC
After a failover reconnection, the client synchronized a subscribed subject with the latest message a...
Definition: MigratoryDataClient.h:133
This class implements all the necessary operations for connecting to a cluster of one or more Migrato...
Definition: MigratoryDataClient.h:101
const std::string NOTIFY_RECONNECT_RATE_EXCEEDED
Indicate that the reconnect rate threshold per 3-minute window has been reached.
Definition: MigratoryDataClient.h:208
Include the declaration of the MigratoryDataListener class.
MigratoryDataLogLevel
This class enumerates the MigratoryData logging levels.
Definition: MigratoryDataLogLevel.h:31
Implementations of this interface can handle the real-time messages received for the subscribed subje...
Definition: MigratoryDataListener.h:24
const std::string CONSTANT_WINDOW_BACKOFF
A constant used to define the reconnect policy.
Definition: MigratoryDataClient.h:215
const std::string NOTIFY_PUBLISH_OK
Indicate that the client successfully published a message.
Definition: MigratoryDataClient.h:192
const std::string NOTIFY_SUBSCRIBE_ALLOW
Indicate that the client was authorized to subscribe to a subject.
Definition: MigratoryDataClient.h:152
const std::string NOTIFY_PUBLISH_NO_SUBSCRIBER
Indicate that the client was unable to publish a message because there is no client subscribed to the...
Definition: MigratoryDataClient.h:184
const std::string TRUNCATED_EXPONENTIAL_BACKOFF
A constant used to define the reconnect policy.
Definition: MigratoryDataClient.h:222
The listener interface that you should implement in order to get the logs of the API.
Definition: MigratoryDataLogListener.h:25
const std::string NOTIFY_DATA_RESYNC
After a failover reconnection, the client synchronized a subscribed subject with the latest message a...
Definition: MigratoryDataClient.h:143
const std::string NOTIFY_SERVER_UP
Indicate that the client successfully connected to a MigratoryData server.
Definition: MigratoryDataClient.h:115
const std::string NOTIFY_PUBLISH_FAILED
Indicate that the client was unable to publish a message.
Definition: MigratoryDataClient.h:200
const std::string NOTIFY_SERVER_DOWN
Indicate that the client failed to connect to a MigratoryData server.
Definition: MigratoryDataClient.h:123
const std::string NOTIFY_PUBLISH_DENIED
Indicate that the client was unable to publish a message because it is not allowed by your entitlemen...
Definition: MigratoryDataClient.h:173
Represent a message.
Definition: MigratoryDataMessage.h:25