Uses of Interface
top.magstar.framework.events.api.EventHandler
Packages that use EventHandler
-
Uses of EventHandler in top.magstar.framework.events.api
Methods in top.magstar.framework.events.api with parameters of type EventHandlerModifier and TypeMethodDescription<T> voidEventBus.subscribe(Class<T> eventType, EventHandler<T> handler) 订阅事件(默认优先级)<T> voidEventBus.subscribe(Class<T> eventType, EventHandler<T> handler, int priority) 订阅事件(指定优先级)<T> voidEventBus.subscribeAsync(Class<T> eventType, EventHandler<T> handler) 订阅异步事件(默认优先级)<T> voidEventBus.subscribeAsync(Class<T> eventType, EventHandler<T> handler, int priority) 订阅异步事件(指定优先级)<T> voidEventBus.unsubscribe(Class<T> eventType, EventHandler<T> handler) 取消订阅指定的处理器 -
Uses of EventHandler in top.magstar.framework.events.models
Methods in top.magstar.framework.events.models that return EventHandlerMethods in top.magstar.framework.events.models with parameters of type EventHandlerModifier and TypeMethodDescriptionbooleanHandlerRegistration.hasHandler(EventHandler<?> handler) 检查处理器是否匹配Constructors in top.magstar.framework.events.models with parameters of type EventHandlerModifierConstructorDescriptionHandlerRegistration(Class<?> eventType, EventHandler<?> handler, int priority, boolean isAsync, String pluginName) HandlerRegistration(Class<?> eventType, EventHandler<?> handler, int priority, boolean isAsync, String pluginName, Object listenerInstance)