public class ClientChannelPooledSelector.ChannelPool extends Pool<ClientChannel>
| Modifier and Type | Field and Description |
|---|---|
protected LoggerFactory |
loggerFactory |
protected int |
timeout |
protected URI |
uri |
| Constructor and Description |
|---|
ChannelPool(LoggerFactory loggerFactory,
URI uri,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
ClientChannel |
chekOut() |
ClientChannel |
create() |
boolean |
validate(ClientChannel t) |
protected LoggerFactory loggerFactory
protected URI uri
protected int timeout
public ChannelPool(LoggerFactory loggerFactory, URI uri, int timeout)
public ClientChannel chekOut() throws Throwable
chekOut in class Pool<ClientChannel>Throwablepublic ClientChannel create() throws ChannelException
create in class Pool<ClientChannel>ChannelExceptionpublic boolean validate(ClientChannel t)
validate in class Pool<ClientChannel>Copyright © 2021. All rights reserved.