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 void
post(Object object)
Posts provided event to all registered subscribers.void
register(Object object)
Registers subscriber to EventBus.void
replay()
void
unregister(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:EventBus
Registers subscriber to EventBus. All methods in subscriber and it's parent classes are checked forSubscribe
annotation and then added to map of subscriptions.
-
unregister
public void unregister(Object object)
Description copied from class:EventBus
Unregisters all subscribed methods from provided subscriber object.- Overrides:
unregister
in classEventBus
- Parameters:
object
- object to unsubscribe from
-
post
public void post(Object object)
Description copied from class:EventBus
Posts provided event to all registered subscribers. Subscriber calls are invoked immediately, ordered by priority then their declaring class' name.
-
replay
public void replay()
-
-