软件包 | 描述 |
---|---|
io.netty.channel.pool |
Channel 池的实现和API。
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractChannelPoolHandler
一个骨架 ChannelPoolHandler 的实现。
|
Modifier and Type | Method and Description |
---|---|
protected ChannelPoolHandler |
SimpleChannelPool.handler()
返回将通知不同池操作的 ChannelPoolHandler 。
|
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)
创建一个新的实例。
|
FixedChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, int maxConnections)
使用
ChannelHealthChecker.ACTIVE 创建一个新实例。
|
FixedChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler, int maxConnections, int maxPendingAcquires)
使用
ChannelHealthChecker.ACTIVE 创建一个新实例。
|
SimpleChannelPool(Bootstrap bootstrap, ChannelPoolHandler handler)
使用
ChannelHealthChecker.ACTIVE 创建一个新实例。
|
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.