Package org.jrebirth.af.core.concurrent

Examples of org.jrebirth.af.core.concurrent.JRebirthRunnable


        final RunnablePriority priority = runInto == null ? RunnablePriority.Normal : runInto.priority();

        // Retrieve the annotation run type (if any)
        final RunType runType = runInto == null ? null : runInto.value();

        final JRebirthRunnable waveHandlerRunnable = buildWaveRunnable(wave, customMethod, priority);

        // If the notified class is part of the UI
        // We must perform this action into the JavaFX Application Thread
        // only if the run type hasn't been overridden
        if (runType != null && runType == RunType.JAT || runType == null && getWaveReady() instanceof Model) {
            JRebirth.runIntoJAT(waveHandlerRunnable);

            // Launch the wave handling into JRebirth Thread Pool
        } else if (runType != null && runType == RunType.JTP) {
            JRebirth.runIntoJTP(waveHandlerRunnable);
        } else {
            // Otherwise we can perform it right now into the current thread (JRebirthThread - JIT)
            waveHandlerRunnable.run();
        }

    }
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.concurrent.JRebirthRunnable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.