- java.lang.Object
-
- org.praxislive.base.AbstractRoot.DelegateConfiguration
-
- Enclosing class:
- AbstractRoot
protected static final class AbstractRoot.DelegateConfiguration extends Object
A configuration object used for customizingAbstractRoot.Delegate
behaviour in a subclass. Create usingAbstractRoot.delegateConfig()
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.AbstractRoot.DelegateConfiguration
pollInBackground()
Whether to poll for incoming calls in another thread in-between calls to update.
-
-
-
Method Detail
-
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 forcedunit
- unit of time argument- Returns:
- this for chaining
-
-