39404142434445
* Adding dispatcher with threads count = {@code Runtime.getRuntime().availableProcessors()} * * @param dispatcherId dispatcher id */ public void addDispatcher(String dispatcherId) { addDispatcher(dispatcherId, new ActorDispatcher(this, Runtime.getRuntime().availableProcessors())); }
5960616263646566
public void addDispatcher(String dispatcherId, int threadsCount) { synchronized (dispatchers) { if (dispatchers.containsKey(dispatcherId)) { return; } dispatchers.put(dispatcherId, new ActorDispatcher(dispatcherId, this, threadsCount)); } }
69707172737475
* Adding dispatcher with threads count = {@code Runtime.getRuntime().availableProcessors()} * * @param dispatcherId dispatcher id */ public void addDispatcher(String dispatcherId) { addDispatcher(dispatcherId, new ActorDispatcher(dispatcherId, this, Runtime.getRuntime().availableProcessors())); }