CatapultServer  v0.5.0.1 (Elephant)
ConsumerDispatcherOptions.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include <stddef.h>
23 
24 namespace catapult { namespace disruptor {
25 
28  public:
30  constexpr ConsumerDispatcherOptions(const char* dispatcherName, size_t disruptorSize)
31  : DispatcherName(dispatcherName)
32  , DisruptorSize(disruptorSize)
34  , ShouldThrowWhenFull(true)
35  {}
36 
37  public:
39  const char* DispatcherName;
40 
42  size_t DisruptorSize;
43 
46 
49  };
50 }}
catapult::disruptor::ConsumerDispatcherOptions::ShouldThrowWhenFull
bool ShouldThrowWhenFull
true if the dispatcher should throw when full, false if it should return an error.
Definition: ConsumerDispatcherOptions.h:48
catapult::disruptor::ConsumerDispatcherOptions::ConsumerDispatcherOptions
constexpr ConsumerDispatcherOptions(const char *dispatcherName, size_t disruptorSize)
Creates options around dispatcherName and disruptorSize.
Definition: ConsumerDispatcherOptions.h:30
catapult::disruptor::ConsumerDispatcherOptions::DispatcherName
const char * DispatcherName
Name of the dispatcher.
Definition: ConsumerDispatcherOptions.h:39
catapult::disruptor::ConsumerDispatcherOptions
Consumer dispatcher options.
Definition: ConsumerDispatcherOptions.h:27
catapult::disruptor::ConsumerDispatcherOptions::DisruptorSize
size_t DisruptorSize
Disruptor size.
Definition: ConsumerDispatcherOptions.h:42
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::disruptor::ConsumerDispatcherOptions::ElementTraceInterval
size_t ElementTraceInterval
Multiple of elements at which an element should be traced through queue and completion.
Definition: ConsumerDispatcherOptions.h:45