spin.off
Class SpinOffEvaluator
public class SpinOffEvaluator
An evaluator for spin-off, i.e. all invocations are evaluated on another thread
than the EDT while further events are dispatched.
SpinOffEvaluator
public SpinOffEvaluator()
Create an evaluator for spin-off using the default dispatcherFactory and starter.
SpinOffEvaluator
public SpinOffEvaluator(DispatcherFactory dispatcherFactory)
Create an evaluator for spin-off using the default starter.
dispatcherFactory
- factory of dispatchers
SpinOffEvaluator
public SpinOffEvaluator(DispatcherFactory dispatcherFactory,
Starter starter)
Create an evaluator for spin-off.
dispatcherFactory
- factory of dispatchersstarter
- starter
SpinOffEvaluator
public SpinOffEvaluator(Starter starter)
Create an evaluator for spin-off using the default dispatcherFactory.
evaluate
public final void evaluate(Invocation invocation)
throws Throwable
Spin the given invocation off the EDT.
- evaluate in interface Evaluator
invocation
- invocation to spin-off
getDefaultDispatcherFactory
public static DispatcherFactory getDefaultDispatcherFactory()
Get the default dispatcher factory.
- default factory of dispatchers
getDefaultStarter
public static Starter getDefaultStarter()
Get the default starter.
setDefaultDispatcherFactory
public static void setDefaultDispatcherFactory(DispatcherFactory dispatcherFactory)
Set the default dispatcher factory.
dispatcherFactory
- the factory of dispatchers to use as default
setDefaultStarter
public static void setDefaultStarter(Starter starter)
Set the default starter.
starter
- the starter to use as default