Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-427

Make DataBroker resource allocation asynchronous

    XMLWordPrintable

Details

    • Improvement
    • Status: Confirmed
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • Binding API, DOM API
    • None

    Description

      Allocating a TransactionChain and registering a DataTreeChangeListener should be asynchronous.

      The first case makes for a weird pattern with error handler, as the handler may fire during allocation. Making allocation asynchronous makes the contract better by separating the allocation failure and normal failure. Normal failure may only occur after the allocation succeeds.

      The second case is similar, but also invokes notification. This means that events can only be delivered after the allocation succeeds, hence the user can react to failures separately and it also means that notifications cannot occur as part of register() call.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: