public class SimpleConnectionPool extends io.netty.channel.pool.SimpleChannelPool implements ConnectionPool
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
connectTimeout |
protected static int |
DEFAULT_CONNECT_TIMEOUT |
protected String |
host |
protected ConnectionPoolContext |
poolContext |
protected int |
port |
protected SocketAddress |
socketAddress |
| 构造器和说明 |
|---|
SimpleConnectionPool(io.netty.bootstrap.Bootstrap bootstrap,
HandlerConfig handlerConfig,
SocketAddress remoteAddress) |
SimpleConnectionPool(io.netty.bootstrap.Bootstrap bootstrap,
HandlerConfig handlerConfig,
SocketAddress remoteAddress,
int connectTimeout) |
SimpleConnectionPool(io.netty.bootstrap.Bootstrap bootstrap,
SocketAddress remoteAddress)
auto use
SolrClientChannelPoolHandler for solr netty channel handler SolrClientHandler |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.channel.Channel |
acquireConnect() |
String |
channelHost() |
int |
channelPort() |
protected io.netty.channel.ChannelFuture |
connectChannel(io.netty.bootstrap.Bootstrap bs) |
ConnectionPoolContext |
poolContext() |
void |
releaseConnect(io.netty.channel.Channel channel) |
void |
setConnectTimeout(int connectTimeout) |
acquire, acquire, close, offerChannel, pollChannel, release, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected static final int DEFAULT_CONNECT_TIMEOUT
protected final SocketAddress socketAddress
protected final String host
protected final int port
protected int connectTimeout
protected ConnectionPoolContext poolContext
public SimpleConnectionPool(io.netty.bootstrap.Bootstrap bootstrap,
SocketAddress remoteAddress)
SolrClientChannelPoolHandler for solr netty channel handler SolrClientHandlerpublic SimpleConnectionPool(io.netty.bootstrap.Bootstrap bootstrap,
HandlerConfig handlerConfig,
SocketAddress remoteAddress)
public SimpleConnectionPool(io.netty.bootstrap.Bootstrap bootstrap,
HandlerConfig handlerConfig,
SocketAddress remoteAddress,
int connectTimeout)
protected io.netty.channel.ChannelFuture connectChannel(io.netty.bootstrap.Bootstrap bs)
connectChannel 在类中 io.netty.channel.pool.SimpleChannelPoolpublic io.netty.channel.Channel acquireConnect()
throws NettyConnectLessException
acquireConnect 在接口中 ConnectionPoolNettyConnectLessExceptionpublic void releaseConnect(io.netty.channel.Channel channel)
releaseConnect 在接口中 ConnectionPoolpublic ConnectionPoolContext poolContext()
poolContext 在接口中 ConnectionPoolpublic String channelHost()
channelHost 在接口中 ConnectionPoolpublic int channelPort()
channelPort 在接口中 ConnectionPoolpublic void setConnectTimeout(int connectTimeout)
setConnectTimeout 在接口中 ConnectionPoolCopyright © 2016 vootoo. All rights reserved.