Samples :: Utils

MessageQueueRunner

Description

There is a FIX Engine requirement that session listener can't perform time-consuming task. This sample shows how to use message queue and single thread to perform time-consuming tasks outside session listener. This approach is also known as "Producer-Consumer design pattern".

Usage

  • Run the sample:
    • win: MessageQueueRunner.bat
    • linux: MessageQueueRunner.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh

ExecutorRunner

Description

There is a FIX Engine requirement that session listener can't perform time-consuming task.This sample shows how to use standard thread pool to perform time-consuming tasks outside session listener.

Usage

  • Run the sample:
    • win: ExecutorRunner.bat
    • linux: ExecutorRunner.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh

StorageReader

Description

This sample app demonstrates how to access FIX messages in file session storage.

Usage

  • Run the sample:
    • win: StorageReader.bat
    • linux: StorageReader.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh

MessageFieldsIteration

Description

This sample app demonstrates how to iterate over all Message fields.

Usage

  • Run the sample:
    • win: MessageFieldsIteration.bat
    • linux: MessageFieldsIteration.sh
  • Clean everything:
    • win: clean.bat
    • linux: clean.sh