Class AbstractRoot.DelegateConfiguration

java.lang.Object
org.praxislive.base.AbstractRoot.DelegateConfiguration
Enclosing class:
AbstractRoot

protected static final class AbstractRoot.DelegateConfiguration extends Object
A configuration object used for customizing AbstractRoot.Delegate behaviour in a subclass. Create using AbstractRoot.delegateConfig().
  • Method Details

    • pollInBackground

      public AbstractRoot.DelegateConfiguration pollInBackground()
      Whether to poll for incoming calls in another thread in-between calls to update. Default is disabled.

      Background polling will use the original root thread or executor.

      Returns:
      this for chaining
    • forceUpdateAfter

      public AbstractRoot.DelegateConfiguration forceUpdateAfter(long time, TimeUnit unit)
      Whether to force an update on another thread if the delegate hasn't called update in the given time period. Default is disabled.

      Forced updates will use the original root thread or executor.

      Parameters:
      time - maximum time period before update will be forced
      unit - unit of time argument
      Returns:
      this for chaining