public class LinkPool extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
LinkPool(RsfEnvironment environment) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeConnection(String hostPortKey) |
void |
destroyPool()
销毁连接池。
|
net.hasor.utils.future.BasicFuture<RsfChannel> |
findChannel(String hostPortKey)
查找连接
|
void |
initPool()
初始化连接池。
|
void |
mappingTo(RsfChannel rsfChannel,
String hostPort) |
net.hasor.utils.future.BasicFuture<RsfChannel> |
preConnection(String hostPortKey) |
public LinkPool(RsfEnvironment environment)
public void initPool()
public void destroyPool()
public net.hasor.utils.future.BasicFuture<RsfChannel> preConnection(String hostPortKey)
public void closeConnection(String hostPortKey)
public void mappingTo(RsfChannel rsfChannel, String hostPort)
public net.hasor.utils.future.BasicFuture<RsfChannel> findChannel(String hostPortKey)
hostPortKey - liek this 127.0.0.1:2180Copyright © 2020–2021. All rights reserved.