|
@@ -59,8 +59,9 @@ public:
|
|
|
private:
|
|
|
const TPartitionReaderConfigPtr Config_;
|
|
|
const IClientPtr Client_;
|
|
|
- TYPath ConsumerPath_;
|
|
|
- int PartitionIndex_;
|
|
|
+ const TYPath ConsumerPath_;
|
|
|
+ const int PartitionIndex_;
|
|
|
+
|
|
|
NLogging::TLogger Logger;
|
|
|
|
|
|
bool Opened_ = false;
|
|
@@ -127,9 +128,9 @@ private:
|
|
|
}
|
|
|
|
|
|
private:
|
|
|
- IQueueRowsetPtr Rowset_;
|
|
|
- TWeakPtr<TPartitionReader> PartitionReader_;
|
|
|
- i64 CurrentOffset_;
|
|
|
+ const IQueueRowsetPtr Rowset_;
|
|
|
+ const TWeakPtr<TPartitionReader> PartitionReader_;
|
|
|
+ const i64 CurrentOffset_;
|
|
|
};
|
|
|
|
|
|
IPersistentQueueRowsetPtr DoRead()
|
|
@@ -299,6 +300,7 @@ private:
|
|
|
const int PartitionIndex_;
|
|
|
const TQueueRowBatchReadOptions RowBatchReadOptions_;
|
|
|
const NLogging::TLogger Logger;
|
|
|
+
|
|
|
TPullConsumerOptions PullConsumerOptions_;
|
|
|
|
|
|
ISubConsumerClientPtr ConsumerClient_;
|
|
@@ -308,7 +310,10 @@ private:
|
|
|
: public IPersistentQueueRowset
|
|
|
{
|
|
|
public:
|
|
|
- TPersistentQueueRowset(IQueueRowsetPtr rowset, TWeakPtr<TMultiQueueConsumerPartitionReader> partitionReader, i64 currentOffset)
|
|
|
+ TPersistentQueueRowset(
|
|
|
+ IQueueRowsetPtr rowset,
|
|
|
+ TWeakPtr<TMultiQueueConsumerPartitionReader> partitionReader,
|
|
|
+ i64 currentOffset)
|
|
|
: Rowset_(std::move(rowset))
|
|
|
, PartitionReader_(std::move(partitionReader))
|
|
|
, CurrentOffset_(currentOffset)
|
|
@@ -361,9 +366,9 @@ private:
|
|
|
}
|
|
|
|
|
|
private:
|
|
|
- IQueueRowsetPtr Rowset_;
|
|
|
- TWeakPtr<TMultiQueueConsumerPartitionReader> PartitionReader_;
|
|
|
- i64 CurrentOffset_;
|
|
|
+ const IQueueRowsetPtr Rowset_;
|
|
|
+ const TWeakPtr<TMultiQueueConsumerPartitionReader> PartitionReader_;
|
|
|
+ const i64 CurrentOffset_;
|
|
|
};
|
|
|
|
|
|
IPersistentQueueRowsetPtr DoRead()
|