Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addChild(EventBus<E>) - Method in interface flare.eventbus.EventBus
B
- build(Consumer<T>) - Method in class flare.eventbus.EventHandler.Builder
- builder() - Static method in interface flare.eventbus.EventHandler
- Builder() - Constructor for class flare.eventbus.EventHandler.Builder
C
- cached() - Static method in interface flare.eventbus.ClassHierarchyService
- cancel() - Method in interface flare.eventbus.Cancellable
-
Marks the event as cancelled.
- Cancellable - Interface in flare.eventbus
-
An event which may be cancelled.
- children() - Method in interface flare.eventbus.EventBus
- ClassHierarchyService - Interface in flare.eventbus
- compareTo(EventSubscriber<T>) - Method in record class flare.eventbus.EventSubscriber
- create() - Static method in interface flare.eventbus.EventBus
- create(Class<T>) - Static method in interface flare.eventbus.EventBus
- create(Class<T>, boolean) - Static method in interface flare.eventbus.EventBus
- create(Class<T>, ClassHierarchyService) - Static method in interface flare.eventbus.EventBus
D
- dispatch(T) - Method in interface flare.eventbus.EventDispatcher
-
Dispatches the specified event to all subscribers contained within this dispatcher.
E
- equals(Object) - Method in record class flare.eventbus.EventSubscriber
-
Indicates whether some other object is "equal to" this one.
- EventBus<T> - Interface in flare.eventbus
-
An event bus which dispatches events to subscribed handlers.
- EventDispatcher<T> - Interface in flare.eventbus
-
Manages
EventSubscribers for a single event type. - EventHandler<T> - Interface in flare.eventbus
-
A handler of an event.
- EventHandler.Builder<T> - Class in flare.eventbus
- EventHandler.Result - Enum Class in flare.eventbus
- EventSubscriber<T> - Record Class in flare.eventbus
-
A subscriber to an event.
- EventSubscriber(Class<T>, EventHandler<T>) - Constructor for record class flare.eventbus.EventSubscriber
- EventSubscriber(Class<T>, EventHandler<T>, int) - Constructor for record class flare.eventbus.EventSubscriber
-
Creates an instance of a
EventSubscriberrecord class. - eventType() - Method in interface flare.eventbus.EventBus
- eventType() - Method in record class flare.eventbus.EventSubscriber
-
Returns the value of the
eventTyperecord component. - expirationCount() - Element in annotation interface flare.eventbus.Subscribe
-
Maximum number of executions until the subscription expires.
Values less than 1 mean the subscription will never expire. - expirationCount(int) - Method in class flare.eventbus.EventHandler.Builder
-
Removes this listener after it has been executed the given number of times.
- EXPIRED - Enum constant in enum class flare.eventbus.EventHandler.Result
- expireWhen(Predicate<T>) - Method in class flare.eventbus.EventHandler.Builder
-
Expires this listener when it passes the given condition.
F
- filter(Predicate<T>) - Method in class flare.eventbus.EventHandler.Builder
-
Adds a filter to the executor of this listener.
- flare.eventbus - module flare.eventbus
- flare.eventbus - package flare.eventbus
H
- handle(T) - Method in interface flare.eventbus.EventHandler
-
Handles the specified event.
- handler() - Method in record class flare.eventbus.EventSubscriber
-
Returns the value of the
handlerrecord component. - hashCode() - Method in record class flare.eventbus.EventSubscriber
-
Returns a hash code value for this object.
- hasSubscribers() - Method in interface flare.eventbus.EventDispatcher
I
- ignoreCancelled() - Element in annotation interface flare.eventbus.Subscribe
-
Whether cancelled events should be handled or ignored by the annotated method.
- ignoreCancelled(boolean) - Method in class flare.eventbus.EventHandler.Builder
-
Specifies if the handler should still be called if
Cancellable.isCancelled()returnstrue. - INVALID - Enum constant in enum class flare.eventbus.EventHandler.Result
- isCancelled() - Method in interface flare.eventbus.Cancellable
-
If the event should be cancelled or not.
N
- NORMAL_PRIORITY - Static variable in record class flare.eventbus.EventSubscriber
O
- of(Class<T>, Consumer<T>) - Static method in record class flare.eventbus.EventSubscriber
- of(Consumer<T>) - Static method in interface flare.eventbus.EventHandler
P
- parent() - Method in interface flare.eventbus.EventBus
- post(E) - Method in interface flare.eventbus.EventBus
-
Post an event starting from this node.
- priority() - Method in record class flare.eventbus.EventSubscriber
-
Returns the value of the
priorityrecord component. - priority() - Element in annotation interface flare.eventbus.Subscribe
R
- register(EventSubscriber<T>) - Method in interface flare.eventbus.EventDispatcher
-
Registers an
EventSubscriber. - removeChild(EventBus<E>) - Method in interface flare.eventbus.EventBus
S
- subscribe(EventSubscriber<E>) - Method in interface flare.eventbus.EventBus
- subscribe(Class<E>, Consumer<E>) - Method in interface flare.eventbus.EventBus
- Subscribe - Annotation Interface in flare.eventbus
-
Annotated methods are automatically discovered and subscribed by
EventBus.subscribeAnnotated(Object). - subscribeAnnotated(Object) - Method in interface flare.eventbus.EventBus
-
Subscribes all method annotated with
Subscribedeclared in the specified object. - SUCCESS - Enum constant in enum class flare.eventbus.EventHandler.Result
- superTypesOf(Class<T>) - Method in interface flare.eventbus.ClassHierarchyService
T
- toString() - Method in record class flare.eventbus.EventSubscriber
-
Returns a string representation of this record class.
U
- unregister(EventSubscriber<T>) - Method in interface flare.eventbus.EventDispatcher
-
Unregisters an
EventSubscriber. - unsubscribe(EventSubscriber<E>) - Method in interface flare.eventbus.EventBus
- unsubscribeAnnotated(Object) - Method in interface flare.eventbus.EventBus
-
Unsubscribes all methods annotated with
Subscribedeclared in the specified object.
V
- valueOf(String) - Static method in enum class flare.eventbus.EventHandler.Result
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class flare.eventbus.EventHandler.Result
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withResult(Consumer<T>, EventHandler.Result) - Static method in interface flare.eventbus.EventHandler
All Classes and Interfaces|All Packages|Constant Field Values