mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 02:15:45 +02:00
23 lines
411 B
C++
23 lines
411 B
C++
// Copyright 2022, DragonflyDB authors. All rights reserved.
|
|
// See LICENSE for licensing terms.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "server/journal/types.h"
|
|
|
|
namespace dfly {
|
|
|
|
class Service;
|
|
|
|
// JournalExecutor allows executing journal entries.
|
|
class JournalExecutor {
|
|
public:
|
|
JournalExecutor(Service* service);
|
|
void Execute(journal::ParsedEntry&& entry);
|
|
|
|
private:
|
|
Service* service_;
|
|
};
|
|
|
|
} // namespace dfly
|