B2BITS FIX Antenna C++ 2.33.0
|
Bats::Application runtime parameters. More...
#include <B2BITS_BatsApplication.h>
Public Member Functions | |
RuntimeParameters () | |
Public Attributes | |
System::u16 | incrementalThreads |
Number of incremental threads. | |
System::u16 | linkDownTimeoutS |
Number of seconds before ServiceListener::Notification::LinkDown notification is generated. | |
std::string | logDirectory |
Path of the directory where the log files will be created. | |
bool | logIncomingBinaryMessages |
Log incoming messages to binary files. | |
bool | logIncomingMessages |
Log incoming messages as text. | |
System::u16 | minSharesValue |
Minimum acceptable number of shares. | |
IncrementReaderType::Type | readerType |
Type of increments reader. | |
SequenceParams | sequenceParams |
Sequence parameters. | |
TCPParams | tcpParams |
TCP parameters. | |
UDPParams | udpParams |
UDP parameters. | |
bool | useNaturalRefresh |
Use 'natural refresh' instead of GRP/Spin. | |
bool | useWorkersForIncrements |
Use worker pool for increments. | |
System::u16 | workerThreads |
Number of worker threads. | |
Bats::Application runtime parameters.
Parameters can be global, or specified at channel or unit levels See bats_mda_configuration for details
|
inline |
System::u16 Bats::RuntimeParameters::incrementalThreads |
Number of incremental threads.
If set to 0 - no threads will be created.
Default value: 2
System::u16 Bats::RuntimeParameters::linkDownTimeoutS |
Number of seconds before ServiceListener::Notification::LinkDown notification is generated.
If this property is set to 0 - LinkXXX notifications are not generated.
Default value = 0
std::string Bats::RuntimeParameters::logDirectory |
Path of the directory where the log files will be created.
Default value: "." - current directory
bool Bats::RuntimeParameters::logIncomingBinaryMessages |
Log incoming messages to binary files.
All incoming UDP and TCP messages will logged to the files in binary format.
Default value: false
bool Bats::RuntimeParameters::logIncomingMessages |
Log incoming messages as text.
All incoming UDP messages will logged as text to the log file.
Default value: false
System::u16 Bats::RuntimeParameters::minSharesValue |
Minimum acceptable number of shares.
Orders with quantity less than this value will be ignored.
Default value: 1 - all orders are accepted
IncrementReaderType::Type Bats::RuntimeParameters::readerType |
Type of increments reader.
Default value: IncrementReaderType::ThreadPool
SequenceParams Bats::RuntimeParameters::sequenceParams |
Sequence parameters.
TCPParams Bats::RuntimeParameters::tcpParams |
TCP parameters.
UDPParams Bats::RuntimeParameters::udpParams |
UDP parameters.
bool Bats::RuntimeParameters::useNaturalRefresh |
Use 'natural refresh' instead of GRP/Spin.
Setting this option to true
allows to recover from gaps without using GRP or Spin server. Instead of initiating replay or recovery, service generates onReset
event with ResetReason::rrNaturalRefresh, clears cache, all books and process current packet as properly ordered.
Default value: false
true
at your own risk bool Bats::RuntimeParameters::useWorkersForIncrements |
Use worker pool for increments.
When this parameter is set to true
, thread pool of worker threads is used for reading UDP multicast messages. Incremental threads are not created. RuntimeParameters::readerType parameter is ignored.
Default value: false
System::u16 Bats::RuntimeParameters::workerThreads |
Number of worker threads.
If set to 0 - no threads will be created.
Default value: 2