onEvent property
An optional hook notified of what is being fetched, or null (the
default) to notify nothing. See EntityPaginationEvent.
Called synchronously at the point where the event happens, so the
order is meaningful even for a synchronous pageLoader. Not final, so
it can also be attached to an already built EntityPagination — only
events emitted afterwards are seen.
An exception thrown by the listener is reported to the current Zone and does not break the fetch.
Implementation
EntityPaginationListener<O>? onEvent;