public class ConnectionPoolManager extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ConnectionPoolManager.Builder |
| 构造器和说明 |
|---|
ConnectionPoolManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.bootstrap.Bootstrap |
getBootstrap() |
io.netty.channel.pool.FixedChannelPool |
getChannelPool(InetSocketAddress address) |
io.netty.channel.pool.ChannelPoolHandler |
getChannelPoolHandler() |
Class<? extends io.netty.channel.EventLoopGroup> |
getGroupType() |
int |
getMaxConn() |
int |
getnThread() |
Class<? extends io.netty.channel.Channel> |
getSocketChannelType() |
static ConnectionPoolManager |
initFromClientProperties(NettyClientProperties properties) |
static ConnectionPoolManager |
initFromClientProperties(NettyClientProperties properties,
Initializer initializer) |
static ConnectionPoolManager |
initFromClientProperties(Properties properties) |
void |
setBootstrap(io.netty.bootstrap.Bootstrap bootstrap) |
void |
setChannelPoolHandler(io.netty.channel.pool.ChannelPoolHandler channelPoolHandler) |
void |
setGroupType(Class<? extends io.netty.channel.EventLoopGroup> groupType) |
void |
setMaxConn(int maxConn) |
void |
setnThread(int nThread) |
void |
setSocketChannelType(Class<? extends io.netty.channel.Channel> socketChannelType) |
void |
shutdown() |
public io.netty.channel.pool.FixedChannelPool getChannelPool(InetSocketAddress address)
public void shutdown()
public int getMaxConn()
public void setMaxConn(int maxConn)
public int getnThread()
public void setnThread(int nThread)
public io.netty.bootstrap.Bootstrap getBootstrap()
public void setBootstrap(io.netty.bootstrap.Bootstrap bootstrap)
public Class<? extends io.netty.channel.Channel> getSocketChannelType()
public void setSocketChannelType(Class<? extends io.netty.channel.Channel> socketChannelType)
public Class<? extends io.netty.channel.EventLoopGroup> getGroupType()
public void setGroupType(Class<? extends io.netty.channel.EventLoopGroup> groupType)
public io.netty.channel.pool.ChannelPoolHandler getChannelPoolHandler()
public void setChannelPoolHandler(io.netty.channel.pool.ChannelPoolHandler channelPoolHandler)
public static ConnectionPoolManager initFromClientProperties(Properties properties) throws ClassNotFoundException
public static ConnectionPoolManager initFromClientProperties(NettyClientProperties properties, Initializer initializer) throws ClassNotFoundException
public static ConnectionPoolManager initFromClientProperties(NettyClientProperties properties) throws ClassNotFoundException
Copyright © 2018. All rights reserved.