@Test public void shouldAbleToBindNetty4() throws Exception { int port = NetUtils.getAvailablePort(); URL url = new URL("http", "localhost", port, new String[]{Constants.BIND_PORT_KEY, String.valueOf(port)}); Server server = new NettyTransporter().bind(url, new ChannelHandlerAdapter()); assertThat(server.isBound(), is(true)); }
@Override public Server bind(URL url, ChannelHandler listener) throws RemotingException { return new NettyServer(url, listener); }
NettyTransporter implements Transporter { @Override public Server bind(URL url, ChannelHandler listener) throws RemotingException { return new NettyServer(url, listener); } }
NettyTransporter implements Transporter { @Override public Server bind(URL url, ChannelHandler listener) throws RemotingException { return new NettyServer(url, listener); }  }
NettyTransporter implements Transporter { @Override public Server bind(URL url, ChannelHandler listener) throws RemotingException { return new NettyServer(url, listener); }  @Override Server bind(URL url, ChannelHandler listener); @Override Client connect(URL url, ChannelHandler listener); }
NettyTransporter implements Transporter { @Override public Server bind(URL url, ChannelHandler listener) throws RemotingException { return new NettyServer(url, listener); }  @Override Server bind(URL url, ChannelHandler listener); @Override Client connect(URL url, ChannelHandler listener); static final String NAME; }