Class PausableSyncEventBus

  • All Implemented Interfaces:
    IPausableEventBus

    public class PausableSyncEventBus
    extends com.google.common.eventbus.EventBus
    implements IPausableEventBus
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Jul 19, 2015
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean paused  
      private java.util.LinkedList<java.lang.Object> queuedEvents  
    • Constructor Summary

      Constructors 
      Constructor Description
      PausableSyncEventBus​(com.google.common.eventbus.SubscriberExceptionHandler subscriberExceptionHandler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void pause()  
      void post​(java.lang.Object event)  
      void resume()  
      • Methods inherited from class com.google.common.eventbus.EventBus

        identifier, register, toString, unregister
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • paused

        private boolean paused
      • queuedEvents

        private java.util.LinkedList<java.lang.Object> queuedEvents
    • Constructor Detail

      • PausableSyncEventBus

        public PausableSyncEventBus​(com.google.common.eventbus.SubscriberExceptionHandler subscriberExceptionHandler)
    • Method Detail

      • post

        public void post​(java.lang.Object event)
        Overrides:
        post in class com.google.common.eventbus.EventBus