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 TypeMethodDescriptionNano.sendEventR(Event 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 EventMethods in org.nanonative.nano.core with parameters of type EventModifier and TypeMethodDescriptionprotected voidSends 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.Nano.sendEventR(Event 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.subscribeEvent(int channelId, Consumer<Event> listener) Registers an event listener for a specific event type.NanoBase.unsubscribeEvent(int channelId, Consumer<Event> listener) Removes a registered event listener for a specific event type. -
Uses of Event in org.nanonative.nano.core.model
Methods in org.nanonative.nano.core.model that return EventModifier and TypeMethodDescriptionContext.broadcastEventR(int channelId, Supplier<Object> payload) Broadcasts an event of the specified type with the provided payload to all listeners within this context without expecting a response.Context.broadcastEventR(int channelId, Supplier<Object> payload, Consumer<Object> responseListener) Broadcasts an event of the specified type with the provided payload to all listeners within this context, expecting a response that is handled by the provided responseListener.Context.newEvent(int channelId) Creates a newEventinstance with the specified event type.Context.sendEventR(int channelId, Supplier<Object> payload) Sends an event of the specified type with the provided payload within this context without expecting a response.Context.sendEventR(int channelId, Supplier<Object> payload, Consumer<Object> responseListener) Sends an event of the specified type with the provided payload within this context, expecting a response that is handled by the provided responseListener.Methods in org.nanonative.nano.core.model with parameters of type EventModifier and TypeMethodDescriptionabstract voidabstract ObjectService.receiveEvent(Event event) 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 TypeMethodDescriptionContext.subscribeEvent(int channelId, Consumer<Event> listener) Registers an event listener for a specific event type.Context.unsubscribeEvent(int channelId, Consumer<Event> listener) Removes a registered event listener for a specific event type. -
Uses of Event in org.nanonative.nano.helper.event.model
Methods in org.nanonative.nano.helper.event.model that return EventModifier and TypeMethodDescriptionEvent.acknowledge()Event.acknowledge(Runnable response) 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.static EventEvent.asyncEventOf(Context context, int channelId) Event.broadcast(boolean broadcast) Event.channelId(int channelId) Sets the channel ID of the event.static Event<T> Event<T> EventEvent.ifPresentAck(int channelId, Class<T> clazz, Function<T, Object> consumer) Event.ifPresentAck(int channelId, Consumer<Event> consumer) Sets the payload of the event.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 EventMethod parameters in org.nanonative.nano.helper.event.model with type arguments 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 EventMethods 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 TypeMethodDescriptionSends an HTTP response using the currentHttpObjectas the response context.Methods in org.nanonative.nano.services.http.model with parameters of type EventModifier and TypeMethodDescriptionSends 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