@Override public void startQueue() { if ( run ) return; String channelName = ""; if (getChannel() instanceof GroupChannel && ((GroupChannel)getChannel()).getName() != null) { channelName = "[" + ((GroupChannel)getChannel()).getName() + "]"; } executor = ExecutorFactory.newThreadPool(maxSpareThreads, maxThreads, keepAliveTime, TimeUnit.MILLISECONDS, new TcclThreadFactory("MessageDispatch15Interceptor.MessageDispatchThread" + channelName)); run = true; }
@Override public void start() throws IOException { if ( executor == null ) { //executor = new ThreadPoolExecutor(minThreads,maxThreads,60,TimeUnit.SECONDS,new LinkedBlockingQueue<Runnable>()); String channelName = ""; if (channel instanceof GroupChannel && ((GroupChannel)channel).getName() != null) { channelName = "[" + ((GroupChannel)channel).getName() + "]"; } TaskThreadFactory tf = new TaskThreadFactory("Tribes-Task-Receiver" + channelName + "-"); executor = ExecutorFactory.newThreadPool(minThreads, maxThreads, maxIdleTime, TimeUnit.MILLISECONDS, tf); } }
@Override public void startQueue() { if (run) return; String channelName = ""; if (getChannel() instanceof GroupChannel && ((GroupChannel) getChannel()).getName() != null) { channelName = "[" + ((GroupChannel) getChannel()).getName() + "]"; } executor = ExecutorFactory.newThreadPool(maxSpareThreads, maxThreads, keepAliveTime, TimeUnit.MILLISECONDS, new TcclThreadFactory("MessageDispatch15Interceptor.MessageDispatchThread" + channelName)); run = true; }
@Override public void start() throws IOException { if (executor == null) { // executor = new // ThreadPoolExecutor(minThreads,maxThreads,60,TimeUnit.SECONDS,new // LinkedBlockingQueue<Runnable>()); String channelName = ""; if (channel instanceof GroupChannel && ((GroupChannel) channel).getName() != null) { channelName = "[" + ((GroupChannel) channel).getName() + "]"; } TaskThreadFactory tf = new TaskThreadFactory("Tribes-Task-Receiver" + channelName + "-"); executor = ExecutorFactory.newThreadPool(minThreads, maxThreads, maxIdleTime, TimeUnit.MILLISECONDS, tf); } }
@Override public void startQueue() { if ( run ) return; executor = ExecutorFactory.newThreadPool(maxSpareThreads, maxThreads, keepAliveTime, TimeUnit.MILLISECONDS, new TcclThreadFactory("MessageDispatch15Interceptor.MessageDispatchThread")); run = true; }
@Override public void start() throws IOException { if ( executor == null ) { //executor = new ThreadPoolExecutor(minThreads,maxThreads,60,TimeUnit.SECONDS,new LinkedBlockingQueue<Runnable>()); TaskThreadFactory tf = new TaskThreadFactory("Tribes-Task-Receiver-"); executor = ExecutorFactory.newThreadPool(minThreads, maxThreads, maxIdleTime, TimeUnit.MILLISECONDS, tf); } }