Class GuavaEventBus

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, EventBus

    public class GuavaEventBus
    extends java.lang.Object
    implements EventBus
    • Constructor Detail

      • GuavaEventBus

        public GuavaEventBus()
    • Method Detail

      • addListener

        public void addListener​(Type type,
                                java.util.function.Consumer<Event> onType)
        Specified by:
        addListener in interface EventBus
      • fire

        public void fire​(Event event)
        Specified by:
        fire in interface EventBus
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface EventBus