com.alibaba.dubbo.remoting.transport.netty4
Class NettyTransporter
java.lang.Object
com.alibaba.dubbo.remoting.transport.netty4.NettyTransporter
- All Implemented Interfaces:
- Transporter
public class NettyTransporter
- extends Object
- implements Transporter
- Author:
- ding.lid, qinliujie
NAME
public static final String NAME
- See Also:
- Constant Field Values
NettyTransporter
public NettyTransporter()
bind
public Server bind(URL url,
ChannelHandler listener)
throws RemotingException
- Description copied from interface:
Transporter
- Bind a server.
- Specified by:
bind
in interface Transporter
- Parameters:
url
- server url
- Returns:
- server
- Throws:
RemotingException
- See Also:
com.alibaba.dubbo.remoting.Transporters#bind(URL, Receiver, ChannelHandler)
connect
public Client connect(URL url,
ChannelHandler listener)
throws RemotingException
- Description copied from interface:
Transporter
- Connect to a server.
- Specified by:
connect
in interface Transporter
- Parameters:
url
- server url
- Returns:
- client
- Throws:
RemotingException
- See Also:
com.alibaba.dubbo.remoting.Transporters#connect(URL, Receiver, ChannelListener)
Copyright © 2012–2017 Alibaba. All rights reserved.