public class NettyClient extends Object implements Closeable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
connect(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.
|
String |
toString() |
org.apache.ratis.thirdparty.io.netty.channel.ChannelFuture |
writeAndFlush(Object msg) |
public void connect(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
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic org.apache.ratis.thirdparty.io.netty.channel.ChannelFuture writeAndFlush(Object msg)
Copyright © 2017–2025 The Apache Software Foundation. All rights reserved.