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

          Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

          Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

          How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page