spring cloud stream - can a spring cloud stream appliction exit explicitly?

 ̄綄美尐妖づ 提交于 2020-01-06 07:08:35

问题


I am not sure if my understand is correct. We launch a spring cloud stream appliction and subscribe to a topic. The application will be running and mornitoring the topic for new message, except we send kill signal to quit. I was thinking if we could quit spring cloud application explicityly, like waiting 5 minutes and no new messages come in? Or processed 1000 records and quit?


回答1:


You don't need to stop the application for this as it will bring the entire JVM (which you can always do if you want). Typically for use cases like this you stop/pause/start/resume bindings individually essentially allowing other bindings to function. Here is where you can find more information



来源:https://stackoverflow.com/questions/55058207/spring-cloud-stream-can-a-spring-cloud-stream-appliction-exit-explicitly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!