Setting the Dispatcher thread count via the AbstractMessageBus constructor #5

Closed
agile001 opened this Issue Nov 29, 2012 · 1 comment

2 participants

@agile001

Hi Benni,

I found the following in the code yesterday when my thread settings didn't seem to have the expected affect.

Starting at line 82 in org.mbassy.AbstractMessageBus is currently;

public AbstractMessageBus(int dispatcherThreadCount) {
    this(2, new ThreadPoolExecutor(5, 50, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>()));
}

but I'm guessing it should be;

public AbstractMessageBus(int dispatcherThreadCount) {
    this(dispatcherThreadCount, new ThreadPoolExecutor(5, 50, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>()));
}

Hope I've got this right.

Regards,
David E.

@bennidi
Owner

Yes, you got this right. I will fix this and include this into the next version. Thanks for the hint.

@bennidi bennidi closed this Nov 29, 2012
@bennidi bennidi pushed a commit that referenced this issue Nov 29, 2012
benni fixed issue #5, added gradle build config a47b632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment