com.alibaba.dubbo.remoting.transport.netty4
Class NettyServer

java.lang.Object
  extended by com.alibaba.dubbo.remoting.transport.AbstractPeer
      extended by com.alibaba.dubbo.remoting.transport.AbstractEndpoint
          extended by com.alibaba.dubbo.remoting.transport.AbstractServer
              extended by com.alibaba.dubbo.remoting.transport.netty4.NettyServer
All Implemented Interfaces:
Resetable, ChannelHandler, Endpoint, Server

public class NettyServer
extends AbstractServer
implements Server

NettyServer

Author:
qian.lei, chao.liuc, qinliujie

Constructor Summary
NettyServer(URL url, ChannelHandler handler)
           
 
Method Summary
 Channel getChannel(InetSocketAddress remoteAddress)
          get channel.
 Collection<Channel> getChannels()
          get channels.
 boolean isBound()
          is bound.
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractServer
close, close, connected, disconnected, getAccepts, getBindAddress, getIdleTimeout, getLocalAddress, reset, send
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractEndpoint
reset
 
Methods inherited from class com.alibaba.dubbo.remoting.transport.AbstractPeer
caught, getChannelHandler, getDelegateHandler, getHandler, getUrl, isClosed, isClosing, received, send, sent, startClose
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alibaba.dubbo.remoting.Server
reset
 
Methods inherited from interface com.alibaba.dubbo.remoting.Endpoint
close, close, getChannelHandler, getLocalAddress, getUrl, isClosed, send, send, startClose
 
Methods inherited from interface com.alibaba.dubbo.common.Resetable
reset
 

Constructor Detail

NettyServer

public NettyServer(URL url,
                   ChannelHandler handler)
            throws RemotingException
Throws:
RemotingException
Method Detail

getChannels

public Collection<Channel> getChannels()
Description copied from interface: Server
get channels.

Specified by:
getChannels in interface Server
Returns:
channels

getChannel

public Channel getChannel(InetSocketAddress remoteAddress)
Description copied from interface: Server
get channel.

Specified by:
getChannel in interface Server
Returns:
channel

isBound

public boolean isBound()
Description copied from interface: Server
is bound.

Specified by:
isBound in interface Server
Returns:
bound


Copyright © 2012–2017 Alibaba. All rights reserved.