All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fxmisc.richtext.demo.ExecutorHelper Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version

package org.fxmisc.richtext.demo;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 

Name: ExecutorHelper

*

Description: . *

*

Comment: ... *

*

Copyright: Copyright (c) 2018, 2019

*

Company: >StA-Soft<

* @author StA * @version 1.0 */ public class ExecutorHelper { /** * Executor-Service. */ private static ExecutorService executor; /** * Get Executor-Service. * @return Executor-Service */ public static synchronized ExecutorService getExecutor() { if (executor == null) { executor = Executors.newSingleThreadExecutor(); } return executor; } /** * Stop Executor-Service. */ public static synchronized void stopExecutor() { if (executor != null) { executor.shutdown(); executor = null; } } /** * Dummy-Constructor. */ protected ExecutorHelper() { } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy