View Javadoc

1   package org.dfdaemon.il2.spi.event;
2   
3   import org.dfdaemon.il2.api.event.Event;
4   
5   /**
6    * @author aka50
7    */
8   public interface EventProcessor {
9   
10      /**
11       * Method inject ...
12       *
13       * @param event of type Event
14       * @throws InterruptedException when
15       */
16      void inject(Event event) throws InterruptedException;
17  
18      /**
19       * Add EventConsumer ...
20       *
21       * @param consumer of type EventConsumer
22       */
23      void addEventConsumer(EventConsumer consumer);
24  
25      /**
26       * Remove EventConsumer ...
27       *
28       * @param consumer of type EventConsumer
29       */
30      void removeEventConsumer(EventConsumer consumer);
31  }