[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Thread usage in paging
clebert.suconic@jboss.com
do-not-reply at jboss.com
Thu Sep 4 11:09:43 EDT 2008
I have one executor being created at PagingManagerFactoryNIO. That executor is shared with all the PagingStores (i.e. all the addresses):
Before change:
| public PagingManagerFactoryNIO(final String directory)
| {
| this.directory = directory;
| this.executor = Executors.newSingleThreadExecutor();
| }
|
>From what I've seen in other places all I would need to do is change how I initialize the executor? Or I am missing something here?
After change:
public PagingManagerFactoryNIO(final String directory)
{
this.directory = directory;
this.executor = Executors.newCachedThreadPool(new JBMThreadFactory("JBM-depaging-threads"));
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174338#4174338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174338
More information about the jboss-dev-forums
mailing list