Class AzureEventBus
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.event.AzureEventBus
-
public class AzureEventBus extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAzureEventBus.EventListenerprivate static classAzureEventBus.SimpleEvent
-
Constructor Summary
Constructors Constructor Description AzureEventBus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidemit(String type)static <T> voidemit(String type, AzureEvent event)static voidemit(String type, Object source)static voidemit(String type, Object source, Object payload)private static com.google.common.eventbus.EventBusgetBus(String eventType)static voidoff(String type, AzureEventBus.EventListener listener)static voidon(String type, AzureEventBus.EventListener listener)static voidonce(String type, java.util.function.BiConsumer<Object,Object> listener)
-
-
-
Method Detail
-
on
public static void on(@Nonnull String type, @Nonnull AzureEventBus.EventListener listener)
-
off
public static void off(@Nonnull String type, @Nonnull AzureEventBus.EventListener listener)
-
once
public static void once(@Nonnull String type, @Nonnull java.util.function.BiConsumer<Object,Object> listener)
-
emit
public static void emit(@Nonnull String type, @Nullable Object source, @Nullable Object payload)
-
emit
public static <T> void emit(@Nonnull String type, @Nonnull AzureEvent event)
-
getBus
private static com.google.common.eventbus.EventBus getBus(String eventType)
-
-