public class ChannelManager extends Object
| Constructor and Description |
|---|
ChannelManager() |
| Modifier and Type | Method and Description |
|---|---|
ChannelWrapper |
getChannel(String nodeGroup,
NodeType nodeType,
String identity)
根据 节点唯一编号得到 channel
|
List<ChannelWrapper> |
getChannels(String nodeGroup,
NodeType nodeType) |
Long |
getOfflineTimestamp(String identity) |
void |
offerChannel(ChannelWrapper channel)
添加channel
|
void |
removeChannel(ChannelWrapper channel) |
void |
start() |
void |
stop() |
public void start()
public void stop()
public List<ChannelWrapper> getChannels(String nodeGroup, NodeType nodeType)
public ChannelWrapper getChannel(String nodeGroup, NodeType nodeType, String identity)
public void offerChannel(ChannelWrapper channel)
public void removeChannel(ChannelWrapper channel)
Copyright © 2016. All rights reserved.