8000 `aeron::Context::newExclusivePublicationHandler()` is not in the API · Issue #500 · aeron-io/aeron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
aeron::Context::newExclusivePublicationHandler() is not in the API #500
Closed
@denizevrenci

Description

@denizevrenci

Without having a separate callback for ExclusivePublications, the users of the Aeron API have to keep a list of registration IDs to identify whether they result from a call toaddPublication() or addExclusivePublication() and call findPublication() or findExclusivePublication() accordingly.

Addition of newExclusivePublicationHandler() breaks existing code if on_new_publication_t handler does not get called for ExclusivePublications. A possible solution could be adding a third call newSynchronizedPublicationHandler() for Publications and deprecating the existing functionality of newPublicationHandler() until a breaking change gets introduced in a later release.
Another possible solution is to make Context detect if newExclusivePublicationHandler() has been set to a non-default handler and wire the calls only in that case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0