Clio
develop
The XRP Ledger API server.
Theme:
Default
Round
Robot
Toggle main menu visibility
Loading...
Searching...
No Matches
TaskManagerProviderInterface.hpp
1
#pragma once
2
3
#include "etl/MonitorInterface.hpp"
4
#include "etl/TaskManagerInterface.hpp"
5
#include "util/async/AnyExecutionContext.hpp"
6
7
#include <cstddef>
8
#include <cstdint>
9
#include <functional>
10
#include <memory>
11
#include <optional>
12
13
namespace
etl
{
14
18
struct
TaskManagerProviderInterface
{
19
virtual
~TaskManagerProviderInterface
() =
default
;
20
30
[[nodiscard]]
virtual
std::unique_ptr<TaskManagerInterface>
31
make
(
32
util::async::AnyExecutionContext
ctx,
33
std::reference_wrapper<MonitorInterface> monitor,
34
uint32_t startSeq,
35
std::optional<uint32_t> finishSeq = std::nullopt
36
) = 0;
37
};
38
39
}
// namespace etl
util::async::AnyExecutionContext
A type-erased execution context.
Definition
AnyExecutionContext.hpp:23
etl
This namespace contains everything to do with the ETL and ETL sources.
Definition
AmendmentBlockHandlerInterface.hpp:6
etl::TaskManagerProviderInterface
An interface for providing the Task Manager.
Definition
TaskManagerProviderInterface.hpp:18
etl::TaskManagerProviderInterface::make
virtual std::unique_ptr< TaskManagerInterface > make(util::async::AnyExecutionContext ctx, std::reference_wrapper< MonitorInterface > monitor, uint32_t startSeq, std::optional< uint32_t > finishSeq=std::nullopt)=0
Make a task manager.
src
etl
TaskManagerProviderInterface.hpp
Generated by
1.17.0