Uses of Interface
civitas.celestis.event.Handleable
Packages that use Handleable
Package
Description
-
Uses of Handleable in civitas.celestis.event
Subinterfaces of Handleable in civitas.celestis.eventModifier and TypeInterfaceDescriptioninterfaceAn event which can be cancelled by a lower priority listener, which flags the event as cancelled, notifying higher priority listeners that this event should be ignored as if it had not happened in the first place.Classes in civitas.celestis.event that implement HandleableModifier and TypeClassDescriptionclassAn event which can be cancelled by a lower priority listener, which flags the event as cancelled, notifying higher priority listeners that this event should be ignored as if it had not happened in the first place.classThe default implementation ofHandleable.Fields in civitas.celestis.event declared as HandleableMethods in civitas.celestis.event with type parameters of type HandleableModifier and TypeMethodDescription<E extends Handleable>
booleanHandlerReference.accepts(E event) Returns whether this handler accepts the provided event as its parameter.<E extends Handleable>
voidHandlerReference.handle(E event) Invokes the handler to process the event.Methods in civitas.celestis.event that return HandleableModifier and TypeMethodDescriptionEvent.getCause()Returns the cause of this event.Handleable.getCause()Returns the cause of this event.Methods in civitas.celestis.event with parameters of type HandleableModifier and TypeMethodDescriptionstatic voidEvents.printEventCauseTrace(PrintStream printStream, Handleable event) Given an event, this prints its serialized form, followed by a list of causes in the temporal order ascending.static StringEvents.toString(Handleable event) Serializes an event into its standardized form.Constructors in civitas.celestis.event with parameters of type HandleableModifierConstructorDescriptionCancellableEvent(Handleable cause) Creates a new cancellable event with a random unique identifier.CancellableEvent(UUID uniqueId, Handleable cause) Creates a new cancellable event.Event(Handleable cause) Creates a new event with a random unique identifier.Event(UUID uniqueId, Handleable cause) Creates a new event. -
Uses of Handleable in civitas.celestis.event.application
Classes in civitas.celestis.event.application that implement HandleableModifier and TypeClassDescriptionclassAn event called by the application to notify classes that there was a significant change in the application's state.classAn event called by the application to notify other classes that the application has been fully initialized, and the application is now fully operational.classAn event called by the application to notify other classes that the application is about to stop, and all modules must prepare for termination.Constructors in civitas.celestis.event.application with parameters of type HandleableModifierConstructorDescriptionApplicationEvent(Application application, Handleable cause) Creates a new application event.ApplicationStartedEvent(Application application, Handleable cause) Creates a new application started event.ApplicationStoppingEvent(Application application, Handleable cause) Creates a new application stopping event. -
Uses of Handleable in civitas.celestis.event.lifecycle
Methods in civitas.celestis.event.lifecycle with type parameters of type HandleableModifier and TypeMethodDescription<E extends Handleable>
voidEventManager.call(E event) Calls an event to this event manager, instructing it to process the event as soon as possible.<E extends Handleable>
voidEventThread.call(E event) Calls an event to this event manager, instructing it to process the event as soon as possible.<E extends Handleable>
voidEventManager.priorityCall(E event) Calls an event to this event manager, instructing it to prioritize this event over all other events currently in the event queue.<E extends Handleable>
voidEventThread.priorityCall(E event) Calls an event to this event manager, instructing it to prioritize this event over all other events currently in the event queue.Constructor parameters in civitas.celestis.event.lifecycle with type arguments of type HandleableModifierConstructorDescriptionprotectedEventThread(String name, Deque<Handleable> eventQueue, List<HandlerReference> handlers, PrintStream printStream) Creates a new event thread. -
Uses of Handleable in civitas.celestis.event.notification
Classes in civitas.celestis.event.notification that implement HandleableModifier and TypeClassDescriptionclassAn event called to notify the entire application that a certain action has been performed.Constructors in civitas.celestis.event.notification with parameters of type HandleableModifierConstructorDescriptionNotificationEvent(Handleable cause) Creates a new notification event with no message.NotificationEvent(String message, Handleable cause) Creates a new notification event.