public class ClientNodes extends Object
| Constructor and Description |
|---|
ClientNodes() |
| Modifier and Type | Method and Description |
|---|---|
ChannelContext |
find(Node node) |
ChannelContext |
find(String ip,
int port) |
void |
put(ChannelContext channelContext)
添加映射
|
void |
remove(ChannelContext channelContext)
Removes映射
|
int |
size() |
public ChannelContext find(String ip, int port)
ip - ipport - portpublic ChannelContext find(Node node)
node - Nodepublic int size()
public void put(ChannelContext channelContext)
channelContext - ChannelContextpublic void remove(ChannelContext channelContext)
channelContext - ChannelContextCopyright © 2025. All rights reserved.