97 return threadingModel_;
112 return receiveSpinningTimeout_;
125 return sendSpinningTimeout_;
141 return messageGrouping_;
168 return licenseStores_;
176 return licenseAlertingDaysBeforeExpiration_;
187 licenseAlertingDaysBeforeExpiration_ = days;
196 return localNetworkInterface_;
225 return storageDirectory_;
239 return localTimeUsage_;
253 return fileBasedStorageSegmentSize_;
265 return asyncFileBasedStorageQueueMaxSize_;
277 return asyncFileBasedStorageThreadAffinity_;
292 return ignoreFileBasedStorageIntegrityErrors_;
304 return logBeforeSending_;
318 return reconnectAttempts_;
330 return reconnectInterval_;
345 return socketReceiveBufferSize_;
360 return reasonableTransmissionTime_;
372 return socketSendBufferSize_;
385 return threadPoolAffinity_;
395 return threadPoolPriority_;
405 return threadPoolPolicy_;
417 return tcpNoDelayOption_;
429 return threadPoolSize_;
442 return keepAliveInterval_;
525 void processLicenseStores(
const std::string&
licenseStore);
527 std::string accessKey_;
529 unsigned asyncFileBasedStorageQueueMaxSize_;
531 CpuIndexes asyncFileBasedStorageThreadAffinity_;
533 bool createEngineLogFile_;
539 bool ignoreFileBasedStorageIntegrityErrors_;
541 unsigned keepAliveInterval_;
543 unsigned licenseAlertingDaysBeforeExpiration_;
545 std::string licenseFilePath_;
549 std::string localNetworkInterface_;
551 bool localTimeUsage_;
553 bool logBeforeSending_;
555 std::string logFileName_;
557 unsigned messageGrouping_;
559 unsigned reasonableTransmissionTime_;
561 int receiveSpinningTimeout_;
563 unsigned reconnectAttempts_;
565 unsigned reconnectInterval_;
567 std::string secretKey_;
569 int sendSpinningTimeout_;
571 std::string sessionId_;
573 int socketReceiveBufferSize_;
575 int socketSendBufferSize_;
577 std::string storageDirectory_;
579 bool tcpNoDelayOption_;
585 int threadPoolPolicy_;
587 int threadPoolPriority_;
589 unsigned threadPoolSize_;
#define ONIXS_CONFLATEDTCP_EXPORTED
#define ONIXS_CONFLATEDTCP_NODISCARD
int socketReceiveBufferSize() const
unsigned receiveSpinningTimeout() const
bool localTimeUsage() const
const std::string & localNetworkInterface() const
SessionSettings & threadPoolSize(unsigned numberOfThreads)
Sets the size of the shared thread pool.
const std::string & accessKey() const
SessionSettings & resetToDefaults()
Resets the settings to the default values.
SessionSettings & ignoreFileBasedStorageIntegrityErrors(bool)
Sets the file-based storage integrity errors checking mode.
SessionSettings & asyncFileBasedStorageQueueMaxSize(unsigned value)
Sets the maximum size of the asynchronous session storage queue.
SessionSettings & reconnectAttempts(unsigned reconnectAttempts)
Sets the maximum number of tries to restore the telecommunications link.
SessionSettings & threadingModel(ThreadingModel::Enum value)
Sets the threading model.
SessionSettings & localTimeUsage(bool)
Specifies the usage of the local time in Handler events and log files.
unsigned sendSpinningTimeout() const
std::string toString() const
int threadPoolPriority() const
int socketSendBufferSize() const
SessionSettings & sendSpinningTimeout(unsigned usecTimeout)
Sets the send spinning timeout (microseconds).
SessionSettings & keepAliveInterval(unsigned milliseconds)
Sets the longest time in milliseconds the client system can remain silent before sending a message.
SessionSettings & threadPoolPriority(int priority)
Sets the thread pool priority.
SessionSettings & socketSendBufferSize(int bufferSize)
Sets the size of the socket send buffer size.
SessionSettings & threadPoolAffinity(const CpuIndexes &cpuIndexes)
Sets the thread pool affinity.
SessionSettings & secretKey(const std::string &value)
Sets the secret key that was assigned by the exchange.
unsigned reconnectAttempts() const
SessionSettings & messageGrouping(unsigned value)
Sets the message grouping mode.
SessionSettings & reconnectInterval(unsigned value)
Sets the time interval between retries to restore the telecommunications link (seconds).
const CpuIndexes & asyncFileBasedStorageThreadAffinity() const
SessionSettings & asyncFileBasedStorageThreadAffinity(const CpuIndexes &cpuIndexes)
Specifies the CPU index(es) for affinity of the asynchronous session storage threads.
SessionSettings & socketReceiveBufferSize(int bufferSize)
Sets the socket receive buffer size.
unsigned keepAliveInterval() const
SessionSettings & localNetworkInterface(const std::string &value)
Specifies the local interface from which the Handler connects to the counterparty.
const std::string & storageDirectory() const
const CpuIndexes & threadPoolAffinity() const
SessionSettings & sessionId(const std::string &value)
Sets the session id that was assigned by the exchange.
SessionSettings & fileBasedStorageSegmentSize(Messaging::UInt64 value)
Sets the segment size for file-based session storage.
const std::string & secretKey() const
SessionSettings & reasonableTransmissionTime(unsigned percentage)
Sets the reasonable transmission time - as the percentage from the KeepAliveInterval value.
static const unsigned MaxSpinningTimeoutUsec
The maximum spinning timeout (microseconds).
SessionSettings & load(const std::string &configFile)
Loads the settings from the given configuration file.
unsigned threadPoolSize() const
SessionSettings & logBeforeSending(bool before)
Controls the order of logging and sending outbound messages.
SessionSettings & storageDirectory(const std::string &value)
Sets the Session Storage directory.
ThreadingModel::Enum threadingModel() const
unsigned reconnectInterval() const
const std::string & logFileName() const
SessionSettings & logFileName(const std::string &value)
Specifies the Handler log file name.
int threadPoolPolicy() const
Messaging::UInt64 fileBasedStorageSegmentSize() const
SessionSettings & accessKey(const std::string &value)
Sets the access key that was assigned by the exchange.
unsigned messageGrouping() const
SessionSettings & receiveSpinningTimeout(unsigned usecTimeout)
Sets the receive spinning timeout (microseconds).
SessionSettings & addLicenseStore(const std::string &value)
Adds the path to the folder that contains license file(s).
SessionSettings & tcpNoDelayOption(bool value)
Sets the value of the option to improve latency at the expense of message throughput (the TCP_NODELAY...
unsigned asyncFileBasedStorageQueueMaxSize() const
bool logBeforeSending() const
const std::string & sessionId() const
SessionSettings & licenseStore(const std::string &value)
Sets the path to the folder that contains license file(s).
SessionSettings & threadPoolPolicy(int policy)
Sets the thread pool policy.
unsigned reasonableTransmissionTime() const
SessionSettings & firmId(const std::string &value)
Sets the firm id that was assigned by the exchange.
SessionSettings & licenseAlertingDaysBeforeExpiration(unsigned days)
Sets the number of days to alert before the license expiration.
bool ignoreFileBasedStorageIntegrityErrors() const
const LicenseStores & licenseStores() const
static const int UseOsDefaultSocketBufferSize
Specifies the usage of the operating system default socket buffer size.
std::vector< std::string > LicenseStores
Folders that contain license file(s).
bool tcpNoDelayOption() const
const std::string & firmId() const
unsigned licenseAlertingDaysBeforeExpiration() const
std::set< CpuIndex > CpuIndexes
Default session settings.
static const int ReasonableTransmissionTime
static const bool TcpNoDelayOption
static const char LogFileName[]
static const int ThreadPoolSize
static const int ReceiveSpinningTimeout
static const bool IgnoreFileBasedStorageIntegrityErrors
static const bool CreateLogFile
static const unsigned MessageGrouping
static const unsigned AsyncFileBasedStorageQueueMaxSize
static const unsigned long long FileBasedStorageSegmentSize
static const int ReconnectAttempts
static const int SendSpinningTimeout
static const bool LogBeforeSending
static const char LogDir[]
static const int SocketReceiveBufferSize
static const bool LocalTimeUsage
static const unsigned LicenseAlertingDaysBeforeExpiration
static const int KeepAliveInterval
static const char LicenseStore[]
static const int SocketSendBufferSize
static const int ReconnectInterval
static const ThreadingModel::Enum ThreadingModelValue
The keys that are used to load settings from the configuration file.
static const char * AsyncFileBasedStorageThreadAffinity
= "AsyncFileBasedStorage.ThreadAffinity"
static const char * ReconnectAttempts
= "Reconnect.Attempts"
static const char * SocketReceiveBufferSize
= "Socket.ReceiveBufferSize"
static const char * LicenseStore
= "LicenseStore"
static const char * ThreadPoolAffinity
= "ThreadPool.Affinity"
static const char * ReasonableTransmissionTime
= "ReasonableTransmissionTime"
static const char * AsyncFileBasedStorageQueueMaxSize
= "AsyncFileBasedStorage.QueueMaxSize"
static const char * SendSpinningTimeout
= "SendSpinningTimeout"
static const char * LicenseFile
= "LicenseFile"
static const char * ThreadingModel
= "ThreadingModel"
static const char * MessageGrouping
= "MessageGrouping"
static const char * LogBeforeSending
= "Log.BeforeSending"
static const char * TcpNoDelayOption
= "TcpNoDelayOption"
static const char * FirmId
= "FirmId"
static const char * KeepAliveInterval
= "KeepAliveInterval"
static const char * IgnoreFileBasedStorageIntegrityErrors
= "IgnoreFileBasedStorageIntegrityErrors"
static const char * LocalTimeUsage
= "LocalTimeUsage"
static const char * SessionId
= "SessionId"
static const char * ThreadPoolPolicy
= "ThreadPool.Policy"
static const char * SocketSendBufferSize
= "Socket.SendBufferSize"
static const char * ThreadPoolPriority
= "ThreadPool.Priority"
static const char * FileBasedStorageSegmentSize
= "FileBasedStorageSegmentSize"
static const char * LicenseAlertingDaysBeforeExpiration
= "LicenseAlertingDaysBeforeExpiration"
static const char * LocalNetworkInterface
= "LocalNetworkInterface"
static const char * LogFileName
= "Log.FileName"
static const char * SecretKey
= "SecretKey"
static const char * ReconnectInterval
= "Reconnect.Interval"
static const char * StorageDirectory
= "Log.Directory"
static const char * AccessKey
= "AccessKey"
static const char * ThreadPoolSize
= "ThreadPool.Size"
static const char * ReceiveSpinningTimeout
= "ReceiveSpinningTimeout"
@ DedicatedThreads
Each session has a sender thread and a receiving thread.