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.

@FunctionalInterface public interface SettleDispatcher
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 Type
    Method
    Description
    void
    dispatch(PageRequest request, Runnable task)
    Runs the settle task on the appropriate thread for the given request.
     
  • Method Details

    • dispatch

      void dispatch(PageRequest request, Runnable task)
      Runs the settle task on the appropriate thread for the given request.
      Parameters:
      request - the request being settled, never null
      task - the settle work, never null
    • inline

      static SettleDispatcher inline()
      Returns:
      a dispatcher that runs settles on the calling thread; intended for tests