Pausing and resuming MQTT Inbound Adapter2019 Community Moderator ElectionDesign: Control number of messages to be feeded to the system using Inbound-channel-adapter as entry pointinbound adapter skipping messagesWhy am I seeing multiple transactions using Spring Integration/JtaTransactionManagerSpring Integration MQTT Subscriber (paho) stops processing messagesSpring Integration: inbound and outbound adapters to MQTTspring-integration-mqtt With multiple Mqtt Servers for subscriptionHttp inbound adapter gives empty response on OPTIONS request under CORSGracefully shutdown a spring integration flowSI subscription to multiple mqtt topicsSpring Integration: copy one inbound message to multiple outbound

How to mitigate "bandwagon attacking" from players?

Reason why dimensional travelling would be restricted

GPL code private and stolen

When do _WA_Sys_ statistics Get Updated?

Rationale to prefer local variables over instance variables?

Specific Chinese carabiner QA?

How can neutral atoms have exactly zero electric field when there is a difference in the positions of the charges?

Book about a time-travel war fought by computers

Giving a talk in my old university, how prominently should I tell students my salary?

Practical reasons to have both a large police force and bounty hunting network?

Sometimes a banana is just a banana

Has Wakanda ever accepted refugees?

School performs periodic password audits. Is my password compromised?

I can't die. Who am I?

The need of reserving one's ability in job interviews

Is there a way to find out the age of climbing ropes?

Caulking a corner instead of taping with joint compound?

Wardrobe above a wall with fuse boxes

How to roleplay my character's ethics according to the DM when I don't understand those ethics?

How can I be pwned if I'm not registered on the compromised site?

How to get the first element while continue streaming?

"seeing as you don't know anyone but me" meaning in this context

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

How to merge row in the first column in LaTeX



Pausing and resuming MQTT Inbound Adapter



2019 Community Moderator ElectionDesign: Control number of messages to be feeded to the system using Inbound-channel-adapter as entry pointinbound adapter skipping messagesWhy am I seeing multiple transactions using Spring Integration/JtaTransactionManagerSpring Integration MQTT Subscriber (paho) stops processing messagesSpring Integration: inbound and outbound adapters to MQTTspring-integration-mqtt With multiple Mqtt Servers for subscriptionHttp inbound adapter gives empty response on OPTIONS request under CORSGracefully shutdown a spring integration flowSI subscription to multiple mqtt topicsSpring Integration: copy one inbound message to multiple outbound










0















We have: a converter that takes the messages from mqtt topics, parses, processes those, and after specific validations sends them to the other messaging system. Should the target system be not reachable, we create a specific event and send this through the injected instance of org.springframework.context.ApplicationEventPublisher.



We would like to: in cases the target messaging system is not availbale, to be able to pause (and then later to resume) the consumption of our inbound MQTT adapters.



We do have a collection of references to those adapters, and would like to write the "Toggler" that implements the ApplicationListener and based on event either pauses or resumes the consumption.



As any instance of MessageProducerSupport the MqttPahoMessageDrivenChannelAdapter has the protected doStart() and doStop() methods. Should one try to use those for pausing/resuming purposes?










share|improve this question


























    0















    We have: a converter that takes the messages from mqtt topics, parses, processes those, and after specific validations sends them to the other messaging system. Should the target system be not reachable, we create a specific event and send this through the injected instance of org.springframework.context.ApplicationEventPublisher.



    We would like to: in cases the target messaging system is not availbale, to be able to pause (and then later to resume) the consumption of our inbound MQTT adapters.



    We do have a collection of references to those adapters, and would like to write the "Toggler" that implements the ApplicationListener and based on event either pauses or resumes the consumption.



    As any instance of MessageProducerSupport the MqttPahoMessageDrivenChannelAdapter has the protected doStart() and doStop() methods. Should one try to use those for pausing/resuming purposes?










    share|improve this question
























      0












      0








      0


      1






      We have: a converter that takes the messages from mqtt topics, parses, processes those, and after specific validations sends them to the other messaging system. Should the target system be not reachable, we create a specific event and send this through the injected instance of org.springframework.context.ApplicationEventPublisher.



      We would like to: in cases the target messaging system is not availbale, to be able to pause (and then later to resume) the consumption of our inbound MQTT adapters.



      We do have a collection of references to those adapters, and would like to write the "Toggler" that implements the ApplicationListener and based on event either pauses or resumes the consumption.



      As any instance of MessageProducerSupport the MqttPahoMessageDrivenChannelAdapter has the protected doStart() and doStop() methods. Should one try to use those for pausing/resuming purposes?










      share|improve this question














      We have: a converter that takes the messages from mqtt topics, parses, processes those, and after specific validations sends them to the other messaging system. Should the target system be not reachable, we create a specific event and send this through the injected instance of org.springframework.context.ApplicationEventPublisher.



      We would like to: in cases the target messaging system is not availbale, to be able to pause (and then later to resume) the consumption of our inbound MQTT adapters.



      We do have a collection of references to those adapters, and would like to write the "Toggler" that implements the ApplicationListener and based on event either pauses or resumes the consumption.



      As any instance of MessageProducerSupport the MqttPahoMessageDrivenChannelAdapter has the protected doStart() and doStop() methods. Should one try to use those for pausing/resuming purposes?







      spring-integration spring-integration-mqtt






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 hours ago









      LHALHA

      51




      51






















          1 Answer
          1






          active

          oldest

          votes


















          1














          The MessageProducerSupport extends an AbstractEndpoint which implements a SmartLifecycle with public start() and stop(). You simple can call those to stop polling messages from MQTT and restart whenever you need.






          share|improve this answer























          • Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

            – LHA
            6 hours ago










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021227%2fpausing-and-resuming-mqtt-inbound-adapter%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The MessageProducerSupport extends an AbstractEndpoint which implements a SmartLifecycle with public start() and stop(). You simple can call those to stop polling messages from MQTT and restart whenever you need.






          share|improve this answer























          • Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

            – LHA
            6 hours ago















          1














          The MessageProducerSupport extends an AbstractEndpoint which implements a SmartLifecycle with public start() and stop(). You simple can call those to stop polling messages from MQTT and restart whenever you need.






          share|improve this answer























          • Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

            – LHA
            6 hours ago













          1












          1








          1







          The MessageProducerSupport extends an AbstractEndpoint which implements a SmartLifecycle with public start() and stop(). You simple can call those to stop polling messages from MQTT and restart whenever you need.






          share|improve this answer













          The MessageProducerSupport extends an AbstractEndpoint which implements a SmartLifecycle with public start() and stop(). You simple can call those to stop polling messages from MQTT and restart whenever you need.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 7 hours ago









          Artem BilanArtem Bilan

          66.7k84972




          66.7k84972












          • Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

            – LHA
            6 hours ago

















          • Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

            – LHA
            6 hours ago
















          Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

          – LHA
          6 hours ago





          Thanks Artem, will check it out. Seem to have stopped analyzing too soon.

          – LHA
          6 hours ago



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021227%2fpausing-and-resuming-mqtt-inbound-adapter%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

          Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

          2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived