Index

A B C D E F H I N O P R S T U V W 
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.EventContext
 
cancellable() - Static method in interface flare.eventbus.EventContext
 
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, EventContext) - Method in interface flare.eventbus.EventDispatcher
Dispatches the specified event to all subscribers contained within this dispatcher.

E

empty() - Static method in interface flare.eventbus.EventContext
 
EmptyEventContext - Class in flare.eventbus
 
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.
EventContext - Interface in flare.eventbus
 
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 EventSubscriber record class.
eventType() - Method in interface flare.eventbus.EventBus
 
eventType() - Method in record class flare.eventbus.EventSubscriber
Returns the value of the eventType record 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, EventContext) - Method in interface flare.eventbus.EventHandler
Handles the specified event.
handler() - Method in record class flare.eventbus.EventSubscriber
Returns the value of the handler record 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 EventContext.isCancelled() returns true.
INVALID - Enum constant in enum class flare.eventbus.EventHandler.Result
 
isCancellable() - Method in interface flare.eventbus.EventContext
 
isCancelled() - Method in interface flare.eventbus.EventContext
 

N

NORMAL_PRIORITY - Static variable in record class flare.eventbus.EventSubscriber
 

O

of(BiConsumer<T, EventContext>) - Static method in interface flare.eventbus.EventHandler
 
of(Consumer<T>) - Static method in interface flare.eventbus.EventHandler
 

P

parent() - Method in interface flare.eventbus.EventBus
 
priority() - Method in record class flare.eventbus.EventSubscriber
Returns the value of the priority record component.
priority() - Element in annotation interface flare.eventbus.Subscribe
 
publish(E) - Method in interface flare.eventbus.EventBus
 
publish(E, EventContext) - Method in interface flare.eventbus.EventBus
 
publishCancellable(E) - Method in interface flare.eventbus.EventBus
 

R

register(EventSubscriber<T>) - Method in interface flare.eventbus.EventDispatcher
Registers an EventSubscriber.
removeChild(EventBus<E>) - Method in interface flare.eventbus.EventBus
 

S

setCancelled(boolean) - Method in interface flare.eventbus.EventContext
 
subscribe(EventSubscriber<E>) - Method in interface flare.eventbus.EventBus
 
subscribe(Class<E>, EventHandler<E>) - Method in interface flare.eventbus.EventBus
 
subscribe(Class<E>, BiConsumer<E, EventContext>) - 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 Subscribe declared 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 Subscribe declared 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(BiConsumer<T, EventContext>, EventHandler.Result) - Static method in interface flare.eventbus.EventHandler
 
withResult(Consumer<T>, EventHandler.Result) - Static method in interface flare.eventbus.EventHandler
 
A B C D E F H I N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values