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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.20.0
    • camel-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: