Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7547

[Java Broker] Refactor closing and deletion of AbstractConfiguredObjects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • Future
    • Broker-J
    • None

    Description

      Currently deletion and closing of objects are completely independent.

      It seems reasonable that an object that is being deleted should be closed before hand to ensure resources are being cleaned up and to reduce code duplication.
      In fact many implementations of ConfiguredObjects already do this.
      This JIRA suggests to do this in a generic way in AbstractConfiguredObject.

      The suggested order would be:
      ACO.deleteAsync

      • calls delete on all children
      • closes itself
      • deletes itself

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lorenz.quack Lorenz Quack
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: