Interface EventDispatcher

All Known Implementing Classes:
EventBroker

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

    • postEvent

      void postEvent(Change change, ChangeEvent event) throws PermissionBackendException
      Post a stream event that is related to a change
      Parameters:
      change - The change that the event is related to
      event - The event to post
      Throws:
      PermissionBackendException - on failure of permission checks
    • postEvent

      void postEvent(BranchNameKey branchName, RefEvent event) throws PermissionBackendException
      Post a stream event that is related to a branch
      Parameters:
      branchName - The branch that the event is related to
      event - The event to post
      Throws:
      PermissionBackendException - on failure of permission checks
    • 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