软件包 | 描述 |
---|---|
io.netty.channel.pool |
Channel 池的实现和API。
|
Modifier and Type | Field and Description |
---|---|
static ChannelHealthChecker |
ChannelHealthChecker.ACTIVE
ChannelHealthChecker 检查Channel.isActive() 是否返回true 。
|
Modifier and Type | Method and Description |
---|---|
protected ChannelHealthChecker |
SimpleChannelPool.healthChecker()
返回 ChannelHealthChecker 将用来检查一个Channel 是健康的。
|
Constructor and Description |
---|
FixedChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, ChannelHealthChecker healthCheck, FixedChannelPool.AcquireTimeoutAction action, long acquireTimeoutMillis, int maxConnections, int maxPendingAcquires)
创建一个新的实例。
|
FixedChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, ChannelHealthChecker healthCheck, FixedChannelPool.AcquireTimeoutAction action, long acquireTimeoutMillis, int maxConnections, int maxPendingAcquires, boolean releaseHealthCheck)
创建一个新的实例。
|
FixedChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, ChannelHealthChecker healthCheck, FixedChannelPool.AcquireTimeoutAction action, long acquireTimeoutMillis, int maxConnections, int maxPendingAcquires, boolean releaseHealthCheck, boolean lastRecentUsed)
创建一个新的实例。
|
SimpleChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, ChannelHealthChecker healthCheck)
创建一个新的实例。
|
SimpleChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, ChannelHealthChecker healthCheck, boolean releaseHealthCheck)
创建一个新的实例。
|
SimpleChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, ChannelHealthChecker healthCheck, boolean releaseHealthCheck, boolean lastRecentUsed)
创建一个新的实例。
|
Copyright © 2008–2018 The Netty Project. All rights reserved.