-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Apache Camel Consumer repeated polling #716
Comments
I do think that in general it should be polling and subscription based triggers are an option ... becaust initially almost no protocol supported subscriptions. Admittedly I didn't create the component nor have I used it before ... perhaps someone on the mailinglist will be able to help here? |
Hmm, I'm having trouble understanding what you mean. Are you saying that what I'm describing already exists? |
I think: yes ... because otherwise the component wouldn't have done anything before. |
Okay, thanks. I'll send an email to the mailing list to see if someone could help me in getting this to work. |
I just remembered this was stated in de docs: |
@chrisdutz |
Well I am not sure we want to continue maintaining two versions of the plugin ... My plans were actually to delete it from the repo here before the next release. |
I'll contact the folks on the camel list again ... and see if I can have them have a look ... I would be happy to do so, but I don't have commit privileges there. |
I'm actually not seeing your email to the camel list ... could you send me a lists.apache.org link to it, so I can refer to it? |
I sent an email on the plc4x mailing list, since the Camel component was maintained here until recently. So, if anyone would know about the existing trigger functionality they would most likely be on the plc4x mailing list instead of the Camel mailing list. This is the email I sent: https://lists.apache.org/thread/str5qm2br0gqxzcsjycslc76x49tysp2. With the camel plc4x repository I meant the plc4x component in the Camel repository. I can make a pull request over there for the changes, but I wanted you to agree first. Since last time you said you thought the plc4x component already supported a time based trigger. And I'd like to know which implementation you would prefer. |
Well ... you would need to create a PR for the camel repo ... then I could comment on it there. |
As far as I understood it, it's camel asking the component to produce an "event" ... so the triggering is done from Camel and not PLC4X ... not sure if there are pushing camel components. |
Okay, I'll look into it next week. |
What would you like to happen?
It would be useful if the Plc4XConsumer would be able to poll the state of tags every x seconds/milliseconds. There is the possibility of adding a "trigger" with a period (I believe in milliseconds). I couldn't figure out exactly how this works from the documentation, but it seems that a plc tag needs to trigger the polling instead of it being solely time-based.
Right now I'm using a work-around in my own code by using a PollingConsumer that stops and starts the Plc4XConsumer for every request. But this isn't ideal.
So, I wanted to add the possibility to poll plc tags every x seconds/milliseconds.
I have two possibilities in mind for configuring this:
I would appreciate some input for what is preferred.
Programming Languages
Protocols
The text was updated successfully, but these errors were encountered: