net.ninjacat.drama
Class FixedThreadPoolStrategy

java.lang.Object
  extended by net.ninjacat.drama.FixedThreadPoolStrategy
All Implemented Interfaces:
ThreadingStrategy

public final class FixedThreadPoolStrategy
extends Object
implements ThreadingStrategy

* ActorSystem threading strategy that uses fixed thread pool ExecutorService with number of threads equal to number of available CPU cores.


Constructor Summary
FixedThreadPoolStrategy()
           
 
Method Summary
 ExecutorService getExecutorService()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedThreadPoolStrategy

public FixedThreadPoolStrategy()
Method Detail

getExecutorService

public ExecutorService getExecutorService()
Specified by:
getExecutorService in interface ThreadingStrategy
Returns:
ExecutorService to be used by ActorSystem when dispatching messages to Actors


Copyright © 2014. All rights reserved.