ClientΒΆ

The Client object holds the state and configuration data for a single abstract client. Depending on the concrete implementation the client could be connected to multiple servers in a cluster, or just a single server. It should be configured and instantiated by a XioClientBootstrap object.

1
2
3
4
XioClient client = new XioClientBootstrap(new NioEventLoopGroup())
  .setAddress(new InetSocketAddress("10.10.10.10", 443))
  .handler(new SimpleInboundChannelHandler())
  .build();

The handler defines how the client will interact with the remote server. By default clients will use HTTP as their application protocol.