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 ?

Понеділок, 14 липня 2014 р. 21:45:15 UTC+3 користувач Konrad Malawski 
написав:
>
> Could you give some more context about what you are trying to achieve?
>
>
> On Mon, Jul 14, 2014 at 7:22 PM, Oleksandr Ryabuha <ale...@gmail.com 
> <javascript:>> wrote:
>
>> How to detach a custom dispatcher ?
>>
>> -- 
>> >>>>>>>>>> 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+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Cheers,
> Konrad 'ktoso' Malawski
> hAkker @ Typesafe
>
> <http://typesafe.com>
>  

-- 
>>>>>>>>>>      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