dragonfly/src/server/journal/executor.h
2022-12-20 16:38:19 +03:00

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