mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
32 lines
712 B
C++
32 lines
712 B
C++
#pragma once
|
|
#include <Common/ConcurrentBoundedQueue.h>
|
|
#include <Core/Block.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class InternalTextLogsQueue : public ConcurrentBoundedQueue<MutableColumns>
|
|
{
|
|
public:
|
|
/// You should not push logs in the queue if their priority greater max_priority
|
|
int max_priority;
|
|
|
|
InternalTextLogsQueue();
|
|
|
|
static Block getSampleBlock();
|
|
static MutableColumns getSampleColumns();
|
|
|
|
/// Is used to pass block from remote server to the client
|
|
void pushBlock(Block && log_block);
|
|
|
|
/// Converts priority from Poco::Message::Priority to a string
|
|
static const char * getPriorityName(int priority);
|
|
};
|
|
|
|
using InternalTextLogsQueuePtr = std::shared_ptr<InternalTextLogsQueue>;
|
|
|
|
}
|
|
|
|
|