Luca Burgazzoli created CAMEL-11801:
---------------------------------------
Summary: cluster view : use reference count to join/leave a cluster
Key: CAMEL-11801
URL: https://issues.apache.org/jira/browse/CAMEL-11801
Project: Camel
Issue Type: Improvement
Components: camel-core
Reporter: Luca Burgazzoli
Assignee: Luca Burgazzoli
Priority: Minor
Fix For: 2.20.0
As today when a view is acquired it is also automatically started and never
stopped until the service it belongs to is stopped, there should be a way to
stop start/stop views according to effective usage.
{code:java}
// get and increase reference
CamelClusterView view = clusterService.getView("...");
// release the view and stop it when ref count is zero.
boolean released = clusterService.releaseView(view);
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)