forked from Abc-Arbitrage/Disruptor-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIConsumerInfo.h
More file actions
33 lines (21 loc) · 728 Bytes
/
IConsumerInfo.h
File metadata and controls
33 lines (21 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include <memory>
#include <vector>
#include "Disruptor/IExecutor.h"
#include "Disruptor/ISequence.h"
#include "Disruptor/ISequenceBarrier.h"
namespace Disruptor
{
class IConsumerInfo
{
public:
virtual ~IConsumerInfo() = default;
virtual std::vector< std::shared_ptr< ISequence > > sequences() const = 0;
virtual const std::shared_ptr< ISequenceBarrier >& barrier() const = 0;
virtual bool isEndOfChain() const = 0;
virtual void start(const std::shared_ptr< IExecutor >& executor) = 0;
virtual void halt() = 0;
virtual void markAsUsedInBarrier() = 0;
virtual bool isRunning() const = 0;
};
} // namespace Disruptor