17 #ifndef LOGBUCKET_HPP_
18 #define LOGBUCKET_HPP_
47 LogBucket(std::int32_t
id, std::list<LogRecord>&& records)
48 : id_(id), logRecords_(std::move(records)) { }
56 LogBucket(std::int32_t
id,
const std::list<LogRecord>& records)
57 : id_(id), logRecords_(records) { }
81 std::list<LogRecord> logRecords_;
The helper class which is used to transfer logs from LogStorage to LogCollector.
std::list< LogRecord > & getRecords()
Returns log records of the bucket.
LogBucket(std::int32_t id, const std::list< LogRecord > &records)
Constructs LogBucket object.
LogBucket(std::int32_t id, std::list< LogRecord > &&records)
Constructs LogBucket object.
LogBucket()
Constructs empty LogBucket object.
std::int32_t getBucketId() const
Returns a log bucket id.