Class ThreadController
- java.lang.Object
-
- org.teichert.databaseexplorer.controllers.ThreadController
-
public final class ThreadController extends Object
This class handles the communication between running threads and the UI-notifications.
-
-
Method Summary
-
-
-
Method Detail
-
getInstance
public static ThreadController getInstance()
-
register
public void register(Thread thread, boolean isInterruptable)
-
register
public void register(Future<?> future, boolean isInterruptable)
-
register
public void register(Thread thread)
-
register
public void register(Future<?> future)
-
createAndAddExecutor
public ExecutorService createAndAddExecutor(Thread thread)
-
removeExecutor
public ExecutorService removeExecutor(Thread thread)
-
getThreadList
public javafx.collections.ObservableList<ThreadIdentificationItem> getThreadList()
-
remove
public void remove(ThreadIdentificationItem threadIdentItem)
-
getMapOfExecutors
public Map<Thread,ExecutorService> getMapOfExecutors()
-
addNotificationListener
public boolean addNotificationListener(IThreadNotificationListener listener)
-
removeNotificationListener
public boolean removeNotificationListener(IThreadNotificationListener listener)
-
notifyNotificationListener
public void notifyNotificationListener(ThreadNotification notification)
-
addChangeListener
public void addChangeListener(javafx.collections.ListChangeListener<ThreadIdentificationItem> listener)
-
removeChangeListener
public void removeChangeListener(javafx.collections.ListChangeListener<ThreadIdentificationItem> listener)
-
-