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 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()
-
-
-
Method Detail
-
pause
public void pause()
- Specified by:
pause
in interfaceIPausableEventBus
-
resume
public void resume()
- Specified by:
resume
in interfaceIPausableEventBus
-
post
public void post(java.lang.Object event)
- Overrides:
post
in classcom.google.common.eventbus.EventBus
-
-