Package net.runelite.client.util
Class DeferredEventBus
- java.lang.Object
-
- net.runelite.client.eventbus.EventBus
-
- net.runelite.client.util.DeferredEventBus
-
@Singleton public class DeferredEventBus extends EventBus
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.runelite.client.eventbus.EventBus
EventBus.Subscriber
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpost(Object object)Posts provided event to all registered subscribers.voidregister(Object object)Registers subscriber to EventBus.voidreplay()voidunregister(Object object)Unregisters all subscribed methods from provided subscriber object.-
Methods inherited from class net.runelite.client.eventbus.EventBus
register, unregister
-
-
-
-
Method Detail
-
register
public void register(Object object)
Description copied from class:EventBusRegisters subscriber to EventBus. All methods in subscriber and it's parent classes are checked forSubscribeannotation and then added to map of subscriptions.
-
unregister
public void unregister(Object object)
Description copied from class:EventBusUnregisters all subscribed methods from provided subscriber object.- Overrides:
unregisterin classEventBus- Parameters:
object- object to unsubscribe from
-
post
public void post(Object object)
Description copied from class:EventBusPosts provided event to all registered subscribers. Subscriber calls are invoked immediately, ordered by priority then their declaring class' name.
-
replay
public void replay()
-
-