net.ninjacat.drama
Class FixedThreadPoolStrategy
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedThreadPoolStrategy
public FixedThreadPoolStrategy()
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.