public class ClientChannelPooledSelector.ChannelPool extends Pool<ClientChannel>
| 限定符和类型 | 字段和说明 |
|---|---|
protected LoggerFactory |
loggerFactory |
protected int |
timeout |
protected URI |
uri |
| 构造器和说明 |
|---|
ChannelPool(LoggerFactory loggerFactory,
URI uri,
int timeout) |
protected LoggerFactory loggerFactory
protected URI uri
protected int timeout
public ChannelPool(LoggerFactory loggerFactory, URI uri, int timeout)
public ClientChannel chekOut() throws Throwable
chekOut 在类中 Pool<ClientChannel>Throwablepublic ClientChannel create() throws ChannelException
create 在类中 Pool<ClientChannel>ChannelExceptionpublic boolean validate(ClientChannel t)
validate 在类中 Pool<ClientChannel>Copyright © 2020. All rights reserved.