0down vote*favorite* 
<http://stackoverflow.com/questions/24736060/javafx-akka-dispatcher-leaks#>

I have created an executor:

public class GUIExecutorService extends AbstractExecutorService {
@Overridepublic void shutdown() {
}
@Overridepublic List<Runnable> shutdownNow() {
    return new ArrayList<>();}
@Overridepublic boolean isShutdown() {
    return false;}
@Overridepublic boolean isTerminated() {
    return false;}
@Overridepublic boolean awaitTermination(long timeout, TimeUnit unit) throws 
InterruptedException {
    return true;}
@Overridepublic void execute(Runnable command) {
    Platform.runLater(command);}}

and configurator:

public class JavaFXEventThreadExecutorServiceConfigurator extends 
ExecutorServiceConfigurator {
public JavaFXEventThreadExecutorServiceConfigurator(Config config, 
DispatcherPrerequisites prerequisites) {
    super(config, prerequisites);}
@Overridepublic ExecutorServiceFactory createExecutorServiceFactory(String id, 
ThreadFactory threadFactory) {
    return () -> new GUIExecutorService(); }    }

and I did use it :

this.navigatorActor = getContext().actorOf(new Props(() -> new 
NavigatorActor(stage)).withDispatcher("javafx-dispatcher"), "navigator" );

But once I want to stop in the application using:

actorSystem.shutdown();

My program still executes. 

Using last shutdown I hoped it should close all actor system.

Actor did not terminate.

What wrong with my code ?

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to