Java 类org.apache.catalina.tribes.util.TcclThreadFactory 实例源码

项目:tomcat7    文件:MessageDispatch15Interceptor.java   
@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;
}
项目:apache-tomcat-7.0.73-with-comment    文件:MessageDispatch15Interceptor.java   
@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;
}
项目:lazycat    文件:MessageDispatch15Interceptor.java   
@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;
}
项目:class-guard    文件:MessageDispatch15Interceptor.java   
@Override
public void startQueue() {
    if ( run ) return;
    executor = ExecutorFactory.newThreadPool(maxSpareThreads, maxThreads,
            keepAliveTime, TimeUnit.MILLISECONDS,
            new TcclThreadFactory("MessageDispatch15Interceptor.MessageDispatchThread"));
    run = true;
}
项目:apache-tomcat-7.0.57    文件:MessageDispatch15Interceptor.java   
@Override
public void startQueue() {
    if ( run ) return;
    executor = ExecutorFactory.newThreadPool(maxSpareThreads, maxThreads,
            keepAliveTime, TimeUnit.MILLISECONDS,
            new TcclThreadFactory("MessageDispatch15Interceptor.MessageDispatchThread"));
    run = true;
}
项目:apache-tomcat-7.0.57    文件:MessageDispatch15Interceptor.java   
@Override
public void startQueue() {
    if ( run ) return;
    executor = ExecutorFactory.newThreadPool(maxSpareThreads, maxThreads,
            keepAliveTime, TimeUnit.MILLISECONDS,
            new TcclThreadFactory("MessageDispatch15Interceptor.MessageDispatchThread"));
    run = true;
}
项目:WBSAirback    文件:MessageDispatch15Interceptor.java   
@Override
public void startQueue() {
    if ( run ) return;
    executor = new ThreadPoolExecutor(maxSpareThreads, maxThreads,
            keepAliveTime, TimeUnit.MILLISECONDS, runnablequeue,
            new TcclThreadFactory());
    run = true;
}