Package tech.guilhermekaua.spigotboot.inventoryapi.pagination.source
package tech.guilhermekaua.spigotboot.inventoryapi.pagination.source
-
ClassDescriptionAsynchronous
PageSourcebacked by anAsyncPageSupplier.Loads one page of elements asynchronously, typically from a database.DefaultSettleDispatcher: settles route to the viewer's region thread (Folia) or the main thread (legacy Spigot/Paper) via the injectedPlatformScheduler.In-memoryPageSource: serves slices of a fixed list and settles every request synchronously on the calling thread.Immutable description of one page load issued by a paginator; safe to share across threads.PageResult<T>Immutable outcome of one page load: the page's items plus the total number of elements in the backing store, which drivesgetTotalPages()and navigation clamping.PageSource<T>Strategy answering "where do page items come from" for a paginator.Invoked when an async page load fails (exceptional completion,nullfuture, synchronous throw, or timeout).Decides which thread runs the settle (state application + callback delivery) of an asynchronously completed page load.