Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2195

Tidy up/Finalise the API around proactor event batches

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.30.0
    • proton-c-0.31.0
    • proton-c
    • None

    Description

      There are a number of issues with the pn_event_batch_t type in proton:

      • The pn_event_batch_t type should be a type whose details are private and only meaningful to the proactor because it is only the proactor API batches events for serialisation. However it is defined in the event.h header file and its only operation pn_event_batch_next() is actually in the proton core library.
      • The type is used internally in the connection_driver API which is in the proton core library. This use is unnecessary as the batches are never even exposed by the connection_driver API. Indeed it's hard to see what use the connection_driver could make of an event batch since it only knows about events from the proton core library which only returns events and never batches.

      The proactor and connection_driver APIs which are the ones affected are both marked as Unsettled APIs so these changes are currently acceptable.

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            astitcher Andrew Stitcher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: