Interface SettleDispatcher
- All Known Implementing Classes:
BukkitSettleDispatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Decides which thread runs the settle (state application + callback delivery) of an
asynchronously completed page load. Synchronous settles never pass through a dispatcher.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(PageRequest request, Runnable task) Runs the settle task on the appropriate thread for the given request.static SettleDispatcherinline()
-
Method Details
-
dispatch
Runs the settle task on the appropriate thread for the given request.- Parameters:
request- the request being settled, never nulltask- the settle work, never null
-
inline
- Returns:
- a dispatcher that runs settles on the calling thread; intended for tests
-