public abstract class AbstractPoolClient
extends com.weibo.api.motan.transport.AbstractClient
| 限定符和类型 | 字段和说明 |
|---|---|
protected static long |
defaultMinEvictableIdleTimeMillis |
protected static long |
defaultSoftMinEvictableIdleTimeMillis |
protected static long |
defaultTimeBetweenEvictionRunsMillis |
protected org.apache.commons.pool.PoolableObjectFactory |
factory |
protected org.apache.commons.pool.impl.GenericObjectPool |
pool |
protected org.apache.commons.pool.impl.GenericObjectPool.Config |
poolConfig |
| 构造器和说明 |
|---|
AbstractPoolClient(com.weibo.api.motan.rpc.URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected com.weibo.api.motan.transport.Channel |
borrowObject() |
protected abstract org.apache.commons.pool.BasePoolableObjectFactory |
createChannelFactory() |
protected void |
initConnection(boolean async) |
protected void |
initPool() |
protected void |
invalidateObject(com.weibo.api.motan.transport.Channel nettyChannel) |
protected void |
returnObject(com.weibo.api.motan.transport.Channel channel) |
getLocalAddress, getRemoteAddress, heartbeat, setLocalAddress, setRemoteAddressprotected static long defaultMinEvictableIdleTimeMillis
protected static long defaultSoftMinEvictableIdleTimeMillis
protected static long defaultTimeBetweenEvictionRunsMillis
protected org.apache.commons.pool.impl.GenericObjectPool pool
protected org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig
protected org.apache.commons.pool.PoolableObjectFactory factory
protected void initPool()
protected void initConnection(boolean async)
protected abstract org.apache.commons.pool.BasePoolableObjectFactory createChannelFactory()
protected com.weibo.api.motan.transport.Channel borrowObject()
throws Exception
Exceptionprotected void invalidateObject(com.weibo.api.motan.transport.Channel nettyChannel)
protected void returnObject(com.weibo.api.motan.transport.Channel channel)
Copyright © 2024. All rights reserved.