public class NettyClient extends Object implements Closeable
| Constructor and Description |
|---|
NettyClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect(String serverAddress,
org.apache.ratis.thirdparty.io.netty.channel.EventLoopGroup group,
org.apache.ratis.thirdparty.io.netty.channel.ChannelInitializer<org.apache.ratis.thirdparty.io.netty.channel.socket.SocketChannel> initializer)
Connects to the given server address.
|
org.apache.ratis.thirdparty.io.netty.channel.ChannelFuture |
writeAndFlush(Object msg) |
public void connect(String serverAddress, org.apache.ratis.thirdparty.io.netty.channel.EventLoopGroup group, org.apache.ratis.thirdparty.io.netty.channel.ChannelInitializer<org.apache.ratis.thirdparty.io.netty.channel.socket.SocketChannel> initializer) throws InterruptedException
InterruptedExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic org.apache.ratis.thirdparty.io.netty.channel.ChannelFuture writeAndFlush(Object msg)
Copyright © 2017–2023 The Apache Software Foundation. All rights reserved.