Package spin.off

Class SpinOffEvaluator


  • public class SpinOffEvaluator
    extends Evaluator
    An evaluator for spin-off, i.e. all invocations are evaluated on another thread than the EDT while further events are dispatched.
    See Also:
    Starter, DispatcherFactory
    • Method Detail

      • evaluate

        public final void evaluate​(Invocation invocation)
                            throws java.lang.Throwable
        Spin the given invocation off the EDT.
        Specified by:
        evaluate in class Evaluator
        Parameters:
        invocation - invocation to spin-off
        Throws:
        java.lang.Throwable
      • getDefaultDispatcherFactory

        public static DispatcherFactory getDefaultDispatcherFactory()
        Get the default dispatcher factory.
        Returns:
        default factory of dispatchers
      • setDefaultDispatcherFactory

        public static void setDefaultDispatcherFactory​(DispatcherFactory dispatcherFactory)
        Set the default dispatcher factory.
        Parameters:
        dispatcherFactory - the factory of dispatchers to use as default
      • getDefaultStarter

        public static Starter getDefaultStarter()
        Get the default starter.
        Returns:
        default starter
      • setDefaultStarter

        public static void setDefaultStarter​(Starter starter)
        Set the default starter.
        Parameters:
        starter - the starter to use as default