Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11801

cluster service : use reference count to join/leave a cluster

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.20.0
    • Component/s: camel-core
    • Labels:
    • Estimated Complexity:
      Unknown

      Description

      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.

      // get and increase reference
      CamelClusterView view = clusterService.getView("...");
      
      // release the view and stop it when ref count is zero.
      boolean released = clusterService.releaseView(view);
      

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: