Java Code Examples for com.alibaba.dubbo.remoting.transport.dispatcher.ChannelHandlers

The following examples show how to use com.alibaba.dubbo.remoting.transport.dispatcher.ChannelHandlers. 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   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException {
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 2
Source Project: dubbo-2.6.5   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException {
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 3
Source Project: dubbo-2.6.5   Source 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: dubbo-2.6.5   Source File: MinaServer.java    License: Apache License 2.0 4 votes vote down vote up
public MinaServer(URL url, ChannelHandler handler) throws RemotingException {
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 5
Source Project: dubbox   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 6
Source Project: dubbox   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 7
Source Project: dubbox   Source 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 8
Source Project: dubbox   Source File: MinaServer.java    License: Apache License 2.0 4 votes vote down vote up
public MinaServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 9
Source Project: dubbox-hystrix   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 10
Source Project: dubbox-hystrix   Source 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 11
Source Project: dubbox-hystrix   Source File: MinaServer.java    License: Apache License 2.0 4 votes vote down vote up
public MinaServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 12
Source Project: dubbo3   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 13
Source Project: dubbo3   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 14
Source Project: dubbo3   Source 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 15
Source Project: dubbox   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 16
Source Project: dubbox   Source 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 17
Source Project: dubbox   Source File: MinaServer.java    License: Apache License 2.0 4 votes vote down vote up
public MinaServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 18
Source Project: dubbo-plus   Source File: Netty4Server.java    License: Apache License 2.0 4 votes vote down vote up
public Netty4Server(URL url, ChannelHandler handler) throws RemotingException {
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 19
Source Project: dubbox   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 20
Source Project: dubbox   Source 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 21
Source Project: dubbox   Source File: MinaServer.java    License: Apache License 2.0 4 votes vote down vote up
public MinaServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 22
Source Project: dubbo-remoting-netty4   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}
 
Example 23
Source Project: dubbo-remoting-netty4   Source File: NettyServer.java    License: Apache License 2.0 4 votes vote down vote up
public NettyServer(URL url, ChannelHandler handler) throws RemotingException{
    super(url, ChannelHandlers.wrap(handler, ExecutorUtil.setThreadName(url, SERVER_THREAD_POOL_NAME)));
}