Class SynchronizedEventBus

java.lang.Object
io.cucumber.core.runtime.SynchronizedEventBus
All Implemented Interfaces:
EventBus, io.cucumber.plugin.event.EventPublisher

public final class SynchronizedEventBus extends Object implements EventBus
  • Method Details

    • synchronize

      public static SynchronizedEventBus synchronize(EventBus eventBus)
    • registerHandlerFor

      public <T> void registerHandlerFor(Class<T> eventType, io.cucumber.plugin.event.EventHandler<T> handler)
      Specified by:
      registerHandlerFor in interface io.cucumber.plugin.event.EventPublisher
    • removeHandlerFor

      public <T> void removeHandlerFor(Class<T> eventType, io.cucumber.plugin.event.EventHandler<T> handler)
      Specified by:
      removeHandlerFor in interface io.cucumber.plugin.event.EventPublisher
    • getInstant

      public Instant getInstant()
      Specified by:
      getInstant in interface EventBus
    • generateId

      public UUID generateId()
      Specified by:
      generateId in interface EventBus
    • send

      public <T> void send(T event)
      Specified by:
      send in interface EventBus
    • sendAll

      public <T> void sendAll(Iterable<T> events)
      Specified by:
      sendAll in interface EventBus