Skip to content

MaxDispatchCountUserThread does not work #328

@ec-steven

Description

@ec-steven

I am using com.refinitiv.ema:ema:3.7.2.0, but have tried version 3.9.2 as well.

I am using com.refinitiv.ema.access.OmmConsumer#dispatch(long) when running with config.operationModel(OmmConsumerConfig.OperationModel.USER_DISPATCH).

The documentation says that MaxDispatchCountUserThread specifies the maximum number of messages the Enterprise Message API can dispatch in a single call to the OmmConsumer::dispatch().

This is exactly what I need to limit the time spent in a single call to dispatch. But it doesn't appear to work. The documentation claims that the default is 100, but I can see well over 1000 callbacks made in a single call to dispatch. And even if I set the parameter explicitly to 1 in a much smaller example where I subscribe to a single RIC, I can still see 15+ callbacks within one call to dispatch.

This appears to relate to #187. Was that ever addressed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions