Article For

How to get all subscriptions?

In order to get info about all existing subscriptions we exposed the following method:

List<SubscriptionConfig> getSubscriptions(int start, int take);

List<SubscriptionConfig> getSubscriptions(int start, int take, String database);
start int Indicates how many data subscriptions should be skipped.
take int Indicates how many data subscriptions should be taken.
database string Name of database to create a data subscription. If null, default database configured in DocumentStore will be used.
Return value
List<SubscriptionConfig> Configurations of existing subscriptions providing such information as: id, criteria, last acknowledged Etag, times of sending last batch and client activity.


List<SubscriptionConfig> configs = store.subscriptions().getSubscriptions(0, 10);