protected static final class CancellableTimer.ScheduledEventHandler extends Object implements EventHandler, Closeable
| Modifier and Type | Method and Description |
|---|---|
boolean |
action()
Performs a unit of work on the event loop thread.
|
void |
close() |
@NotNull HandlerPriority |
priority()
Returns the priority level of this event handler within the event loop.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteventLoop, loopFinished, loopStartedpublic boolean action()
throws InvalidEventHandlerException,
InvalidMarshallableException
VanillaEventHandler 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.
action in interface VanillaEventHandlertrue if more work is expected imminently; false otherwiseInvalidEventHandlerException - to remove this handler from the event loopInvalidMarshallableException - if a DTO validation fails@NotNull public @NotNull HandlerPriority priority()
EventHandlerpriority in interface EventHandlerpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2026 Chronicle Software Ltd. All rights reserved.