| 程序包 | 说明 |
|---|---|
| com.baidu.jprotobuf.pbrpc.transport |
RPC TCP protocol transport implements.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
ChannelPoolObjectFactory.create() |
Connection |
ChannelPoolObjectFactory.fetchConnection()
Fetch connection.
|
Connection |
ChannelPool.getChannel()
Gets the channel.
|
Connection |
RpcChannel.getConnection()
Gets the connection.
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.commons.pool2.PooledObject<Connection> |
ChannelPoolObjectFactory.wrap(Connection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RpcChannel.doTransport(Connection connection,
RpcDataPackage rpcDataPackage,
BlockingRpcCallback callback,
long onceTalkTimeout)
Do transport.
|
void |
RpcChannel.releaseConnection(Connection connection)
Release connection.
|
void |
ChannelPool.returnChannel(Connection channel)
Return channel.
|
org.apache.commons.pool2.PooledObject<Connection> |
ChannelPoolObjectFactory.wrap(Connection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ChannelPoolObjectFactory.activateObject(org.apache.commons.pool2.PooledObject<Connection> p)
activateObject will invoke every time before it borrow from the pool.
|
void |
ChannelPoolObjectFactory.destroyObject(org.apache.commons.pool2.PooledObject<Connection> p) |
void |
ChannelPoolObjectFactory.passivateObject(org.apache.commons.pool2.PooledObject<Connection> p)
is invoked on every instance when it is returned to the pool.
|
boolean |
ChannelPoolObjectFactory.validateObject(org.apache.commons.pool2.PooledObject<Connection> p) |
| 构造器和说明 |
|---|
RpcChannelFutureListener(Connection conn)
Instantiates a new rpc channel future listener.
|
Copyright © 2022 Baidu, Inc.. All rights reserved.