Skip to content

Mechanism to mark events that must always be posted as sticky #178

@nikclayton

Description

@nikclayton

Have you considered any mechanisms for indicating that a given event should always be posted using postSticky? Or marking an event as always being sticky, looking for that in post(), and delegating to postSticky() in that case?

I have a quick hack which requires my events to inherit from either NonStickyEvent or StickyEvent classes, subclass EventBus, and make the signature of post() and postSticky() require objects of the relevant subclass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions