Java Code Examples for com.alibaba.dubbo.common.utils.ExecutorUtil#setThreadName()

The following examples show how to use com.alibaba.dubbo.common.utils.ExecutorUtil#setThreadName() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dubbo-2.6.5   File: AbstractClient.java    License: Apache License 2.0 4 votes vote down vote up
protected static ChannelHandler wrapChannelHandler(URL url, ChannelHandler handler) {
    url = ExecutorUtil.setThreadName(url, CLIENT_THREAD_POOL_NAME);
    url = url.addParameterIfAbsent(Constants.THREADPOOL_KEY, Constants.DEFAULT_CLIENT_THREADPOOL);
    return ChannelHandlers.wrap(handler, url);
}
 
Example 2
Source Project: dubbox   File: AbstractClient.java    License: Apache License 2.0 4 votes vote down vote up
protected static ChannelHandler wrapChannelHandler(URL url, ChannelHandler handler){
    url = ExecutorUtil.setThreadName(url, CLIENT_THREAD_POOL_NAME);
    url = url.addParameterIfAbsent(Constants.THREADPOOL_KEY, Constants.DEFAULT_CLIENT_THREADPOOL);
    return ChannelHandlers.wrap(handler, url);
}
 
Example 3
Source Project: dubbox-hystrix   File: AbstractClient.java    License: Apache License 2.0 4 votes vote down vote up
protected static ChannelHandler wrapChannelHandler(URL url, ChannelHandler handler){
    url = ExecutorUtil.setThreadName(url, CLIENT_THREAD_POOL_NAME);
    url = url.addParameterIfAbsent(Constants.THREADPOOL_KEY, Constants.DEFAULT_CLIENT_THREADPOOL);
    return ChannelHandlers.wrap(handler, url);
}
 
Example 4
Source Project: dubbo3   File: AbstractClient.java    License: Apache License 2.0 4 votes vote down vote up
protected static ChannelHandler wrapChannelHandler(URL url, ChannelHandler handler) {
    url = ExecutorUtil.setThreadName(url, CLIENT_THREAD_POOL_NAME);
    url = url.addParameterIfAbsent(Constants.THREADPOOL_KEY, Constants.DEFAULT_CLIENT_THREADPOOL);
    return ChannelHandlers.wrap(handler, url);
}
 
Example 5
Source Project: dubbox   File: AbstractClient.java    License: Apache License 2.0 4 votes vote down vote up
protected static ChannelHandler wrapChannelHandler(URL url, ChannelHandler handler){
    url = ExecutorUtil.setThreadName(url, CLIENT_THREAD_POOL_NAME);
    url = url.addParameterIfAbsent(Constants.THREADPOOL_KEY, Constants.DEFAULT_CLIENT_THREADPOOL);
    return ChannelHandlers.wrap(handler, url);
}
 
Example 6
Source Project: dubbox   File: AbstractClient.java    License: Apache License 2.0 4 votes vote down vote up
protected static ChannelHandler wrapChannelHandler(URL url, ChannelHandler handler){
    url = ExecutorUtil.setThreadName(url, CLIENT_THREAD_POOL_NAME);
    url = url.addParameterIfAbsent(Constants.THREADPOOL_KEY, Constants.DEFAULT_CLIENT_THREADPOOL);
    return ChannelHandlers.wrap(handler, url);
}