@FunctionalInterface public interface VanillaEventHandler
This interface should be implemented by classes that handle specific events or tasks within an event loop.
The action() method is responsible for performing the necessary actions or tasks.
The event loop can service multiple event handlers, and the frequency at which any particular handler is serviced is influenced by the handler's priority as well as the overall activity within the event loop.
| Modifier and Type | Method and Description |
|---|---|
boolean |
action()
Performs a unit of work on the event loop thread.
|
boolean action()
throws InvalidEventHandlerException,
InvalidMarshallableException
Returning true biases the scheduler to call this handler again
without delay. Throwing InvalidEventHandlerException.reusable()
removes the handler from the EventLoop and must have no side
effects.
true if more work is expected imminently; false otherwiseInvalidEventHandlerException - to remove this handler from the event loopInvalidMarshallableException - if a DTO validation failsCopyright © 2026 Chronicle Software Ltd. All rights reserved.