Skip to content

Fixed Rate/Scheduled polling of messages #372

@jeroenvandevelde

Description

@jeroenvandevelde

Hi, first thanks for the great library.

We are currently using your library but now want to use it to retrieve messages at a fixed rate/schedule.
As in poll for 5 messages each 10 seconds, even if you are earlier done with processing of those 5 messages.

We can't use the BatchingPeriod in the BatchingMessageRetreiverProperties as that is the maximum period it waits.

I didn't found a way to do this, so i took a look at the code.

I found out it could be possible with a new implementation of the MessageRetriever that uses a Scheduled Executor.
So that it can run at a fixed amount of time.

Would you welcome such an addition to your library or did i miss some way it could work with the current code?
Or would you prefer a different approach?
I am willing to make a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions