Interface EventDispatcher

  • All Known Implementing Classes:
    EventBroker

    public interface EventDispatcher
    Interface for posting (dispatching) Events
    • Method Detail

      • postEvent

        void postEvent​(Project.NameKey projectName,
                       ProjectEvent event)
        Post a stream event that is related to a project.
        Parameters:
        projectName - The project that the event is related to.
        event - The event to post.
      • postEvent

        void postEvent​(Event event)
                throws PermissionBackendException
        Post a stream event generically.

        If you are creating a RefEvent or ChangeEvent from scratch, it is more efficient to use the specific postEvent methods for those use cases.

        Parameters:
        event - The event to post.
        Throws:
        PermissionBackendException - on failure of permission checks