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

The following examples show how to use com.alibaba.dubbo.remoting.transport.dispatcher.ChannelHandlers. 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 File: NettyServer.java    From dubbo3 with 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 File: NettyServer.java    From dubbo-remoting-netty4 with 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 File: NettyServer.java    From dubbo-remoting-netty4 with 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 #4
Source File: MinaServer.java    From dubbox with 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 File: AbstractClient.java    From dubbox with 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 File: NettyServer.java    From dubbox with 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 File: Netty4Server.java    From dubbo-plus with 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 #8
Source File: MinaServer.java    From dubbox with 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 File: AbstractClient.java    From dubbox with 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 #10
Source File: NettyServer.java    From dubbox with 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 #11
Source File: AbstractClient.java    From dubbo3 with 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 #12
Source File: NettyServer.java    From dubbo3 with 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 File: NettyServer.java    From dubbo-2.6.5 with 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 File: MinaServer.java    From dubbox-hystrix with 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 #15
Source File: AbstractClient.java    From dubbox-hystrix with 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 #16
Source File: NettyServer.java    From dubbox-hystrix with 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 #17
Source File: MinaServer.java    From dubbox with 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 File: AbstractClient.java    From dubbox with 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 #19
Source File: NettyServer.java    From dubbox with 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 File: NettyServer.java    From dubbox with 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 #21
Source File: MinaServer.java    From dubbo-2.6.5 with 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 File: AbstractClient.java    From dubbo-2.6.5 with 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 #23
Source File: NettyServer.java    From dubbo-2.6.5 with 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)));
}