Uses of Class
org.nanonative.nano.helper.event.model.Event
Packages that use Event
Package
Description
-
Uses of Event in org.nanonative.nano.core
Fields in org.nanonative.nano.core with type parameters of type EventMethods in org.nanonative.nano.core that return EventModifier and TypeMethodDescription<C,R> Event <C, R> Nano.sendEventR(Event<C, R> event) Processes an event with the given parameters and decides on the execution path based on the presence of a response listener and the broadcast flag.Methods in org.nanonative.nano.core that return types with arguments of type EventModifier and TypeMethodDescriptionNanoBase.listeners()Retrieves the registered event listeners.NanoBase.subscribeError(Consumer<Event<Object, Void>> listener) Registers for global error handling.NanoBase.subscribeError(Channel<C, R> channel, Consumer<Event<C, R>> listener) Registers for global error handling.NanoBase.subscribeEvent(Channel<C, R> channel, BiConsumer<? super Event<C, R>, C> listener) Registers an event listener with a typed payload.Methods in org.nanonative.nano.core with parameters of type EventModifier and TypeMethodDescriptionprotected voidPerforms the cleanUps operation like memory.Sends an event with the specified parameters, either broadcasting it to all listeners or sending it to a targeted listener asynchronously if a response listener is provided.<C,R> Event <C, R> Nano.sendEventR(Event<C, R> event) Processes an event with the given parameters and decides on the execution path based on the presence of a response listener and the broadcast flag.Nano.sendEventSameThread(Event<?, ?> event) Sends an event on the same thread and determines whether to process it to the first listener.Method parameters in org.nanonative.nano.core with type arguments of type EventModifier and TypeMethodDescriptionNanoBase.subscribeError(Consumer<Event<Object, Void>> listener) Registers for global error handling.NanoBase.subscribeError(Channel<C, R> channel, Consumer<Event<C, R>> listener) Registers for global error handling.NanoBase.subscribeEvent(Channel<C, R> channel, BiConsumer<? super Event<C, R>, C> listener) Registers an event listener with a typed payload.<C,R> T NanoBase.subscribeEvent(Channel<C, R> channel, Consumer<? super Event<C, R>> listener) Registers an event listener with a typed payload.<C,R> T NanoBase.unsubscribeEvent(int channelId, Consumer<Event<C, R>> listener) Removes a registered event listener for a specific event payload. -
Uses of Event in org.nanonative.nano.core.model
Methods in org.nanonative.nano.core.model that return EventModifier and TypeMethodDescription<C,R> Event <C, R> Creates a newEventinstance with the specified event payload.<C,R> Event <C, R> Creates a newEventinstance with the specified event payload.Methods in org.nanonative.nano.core.model that return types with arguments of type EventModifier and TypeMethodDescriptionContext.subscribeError(Consumer<Event<Object, Void>> listener) Registers for global error handling.Context.subscribeError(Channel<C, R> channel, Consumer<Event<C, R>> listener) Registers for global error handling.Context.subscribeEvent(Channel<C, R> channel, BiConsumer<Event<C, R>, C> listener) Registers an event listener with a typed payload.Context.subscribeEvent(Channel<C, R> channel, Predicate<Event<C, R>> filter, Consumer<Event<C, R>> listener) Registers an event listener with a typed payload.Methods in org.nanonative.nano.core.model with parameters of type EventModifier and TypeMethodDescriptionabstract voidProcesses incoming events for the service.abstract ObjectHandles service failures and errors.Service.receiveEvent(Event<?, ?> event) Processes received events and handles configuration changes.Context.sendEventError(Event<?, ?> event, Service service, Throwable throwable) Sends an unhandled event with the provided, nullable payload and exception.Method parameters in org.nanonative.nano.core.model with type arguments of type EventModifier and TypeMethodDescriptionfinal ContextContext.runAwaitHandled(Consumer<Event<Object, Void>> onFailure, ExRunnable... runnable) Executes asynchronously and waits for all runnable to be readyfinal NanoThread[]Context.runAwaitRHandled(Consumer<Event<Object, Void>> onFailure, ExRunnable... runnable) Executes and waits for allServiceto be readyfinal ContextContext.runHandled(Consumer<Event<Object, Void>> onFailure, ExRunnable... runnable) Executes one or multiple runnable asynchronously.final NanoThread[]Context.runReturnHandled(Consumer<Event<Object, Void>> onFailure, ExRunnable... runnable) Executes one or multiple runnable asynchronously.Context.subscribeError(Consumer<Event<Object, Void>> listener) Registers for global error handling.Context.subscribeError(Channel<C, R> channel, Consumer<Event<C, R>> listener) Registers for global error handling.Context.subscribeEvent(Channel<C, R> channel, BiConsumer<Event<C, R>, C> listener) Registers an event listener with a typed payload.<C,R> Context Context.subscribeEvent(Channel<C, R> channel, Consumer<Event<C, R>> listener) Registers an event listener with a typed payload.Context.subscribeEvent(Channel<C, R> channel, Predicate<Event<C, R>> filter, Consumer<Event<C, R>> listener) Registers an event listener with a typed payload.Context.subscribeEvent(Channel<C, R> channel, Predicate<Event<C, R>> filter, Consumer<Event<C, R>> listener) Registers an event listener with a typed payload.<C,R> Context Context.unsubscribeEvent(int channelId, Consumer<Event<C, R>> listener) Removes a registered event listener for a specific event payload.<C,R> Context Context.unsubscribeEvent(Channel<C, R> channel, Consumer<Event<C, R>> listener) Removes a registered event listener for a specific event payload. -
Uses of Event in org.nanonative.nano.helper.event.model
Methods in org.nanonative.nano.helper.event.model that return EventModifier and TypeMethodDescriptionEvent.acknowledge()Marks the event as acknowledged without providing a response body.Event.async(boolean async) Sets the event to asynchronous mode, allowing the response to be handled by a listener.Sets the event to asynchronous mode, allowing the response to be handled by a listener.Event.broadcast(boolean broadcast) Sets the broadcast flag.Event.containsEvent(boolean containsEvent) Sets the internal flag indicating that the payload contains a nested event.Attaches an error to this event.Sets the payload of the event.Event.payloadAckAsync(Consumer<C> consumer) Acknowledges first, then resolves the payload asynchronously and passes it to the consumer.Event.payloadAsync(Consumer<C> consumer) Resolves the payload asynchronously on theContextexecutor and passes it to the consumer.Invokes the given consumer with this event and returns this instance.Puts the key/value into the underlying map and returnsthisfor fluent chaining.Completes the event with a response and marks it as acknowledged.Event.send()Sends the event to the Nano instance for processing.Methods in org.nanonative.nano.helper.event.model that return types with arguments of type EventModifier and TypeMethodDescriptionApplies a predicate to this event and returns aTypewrapper containing either this event (when the predicate passes) ornull.Method parameters in org.nanonative.nano.helper.event.model with type arguments of type EventModifier and TypeMethodDescriptionApplies a predicate to this event and returns aTypewrapper containing either this event (when the predicate passes) ornull.Invokes the given consumer with this event and returns this instance. -
Uses of Event in org.nanonative.nano.services.file
Methods in org.nanonative.nano.services.file with parameters of type Event -
Uses of Event in org.nanonative.nano.services.http
Methods in org.nanonative.nano.services.http that return types with arguments of type EventModifier and TypeMethodDescriptionstatic Consumer<Event<HttpObject, HttpObject>> HttpServer.setError(AtomicBoolean internalError) Methods in org.nanonative.nano.services.http with parameters of type Event -
Uses of Event in org.nanonative.nano.services.http.model
Methods in org.nanonative.nano.services.http.model that return EventModifier and TypeMethodDescription<C,R> Event <C, R> Sends an HTTP response using the currentHttpObjectas the response context.<C,R> Event <C, R> HttpObject.respond(Event<C, R> event, UnaryOperator<HttpObject> response) Sends an HTTP response using the currentHttpObjectas the response context.Methods in org.nanonative.nano.services.http.model with parameters of type EventModifier and TypeMethodDescription<C,R> Event <C, R> Sends an HTTP response using the currentHttpObjectas the response context.<C,R> Event <C, R> HttpObject.respond(Event<C, R> event, UnaryOperator<HttpObject> response) Sends an HTTP response using the currentHttpObjectas the response context. -
Uses of Event in org.nanonative.nano.services.logging
Methods in org.nanonative.nano.services.logging with parameters of type Event -
Uses of Event in org.nanonative.nano.services.metric.logic
Methods in org.nanonative.nano.services.metric.logic with parameters of type Event