How do I set GuaranteedOutputBuffer programatically?

I'm running into the problem with insufficient output buffers. I'm using OmmConsumerConfig, but not EmaConfig.xml. Is there a way to set GuaranteedOutputBuffer programatically? I couldn't find an example on the forums, in the samples, or the EMA javadoc.

https://community.developers.refinitiv.com/questions/7929/logging-reqmsg-using-ema-api.html

Thanks,

Shawn

Best Answer

  • zoya faberov
    Answer ✓

    GuaranteedOutputBuffers is not exposed programmatically, you will have to set it from file-based config.

    In my experience, hard-coded config is best suitable for simple examples, and production-strength applications require the flexibility of a file-based configuration.

Answers

  • If hard-coded, true, but our configs are metadata driven, so where it's exposed, I can easily have multiple configs within a single process (for different users), that can also be easily be updated dynamically rather than having to allow people to edit files, or hook in a file generation system.