final Callback<Map<ByteString, Versioned<SubscriptionData>>> callback, Object ctx) {
if (!cursor.hasMoreEntries()) {
callback.operationFinished(ctx, topicSubs);
return;
}
ReadEntriesCallback readCb = new ReadEntriesCallback() {
@Override
public void complete(int rc, Iterator<MetastoreTableItem> items, Object ctx) {
if (rc != MSException.Code.OK.getCode()) {
logErrorAndFinishOperation("Could not read subscribers for cursor " + cursor,
callback, ctx, rc);