Class PausableSyncEventBus
- java.lang.Object
-
- com.google.common.eventbus.EventBus
-
- ch.sahits.game.openpatrician.utilities.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 booleanpausedprivate 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 voidpause()voidpost(java.lang.Object event)voidresume()
-
-
-
Method Detail
-
pause
public void pause()
- Specified by:
pausein interfaceIPausableEventBus
-
resume
public void resume()
- Specified by:
resumein interfaceIPausableEventBus
-
post
public void post(java.lang.Object event)
- Overrides:
postin classcom.google.common.eventbus.EventBus
-
-