| 限定符和类型 | 类和说明 |
|---|---|
(专用程序包) class |
ISearchConnPool.AConn |
(专用程序包) static class |
ISearchConnPool.PulseThread |
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) static List<ISearchConnPool<?>> |
all_pools |
(专用程序包) ConnBuilder<T> |
builder |
(专用程序包) SouwenConfig |
conf |
(专用程序包) List<ISearchConnPool.AConn> |
connlist |
(专用程序包) long |
idleRemoveDelay |
protected static org.slf4j.Logger |
log |
(专用程序包) int |
maxActive |
(专用程序包) int |
maxIdle |
(专用程序包) long |
maxWait |
(专用程序包) long |
pulseInteval |
(专用程序包) static ISearchConnPool.PulseThread |
pulseT |
| 构造器和说明 |
|---|
ISearchConnPool(ConnBuilder<T> builder,
int ma,
int mi,
long mw,
int ird,
long pi) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
T |
getConn() |
void |
initialize(SouwenConfig conf) |
void |
pulse() |
void |
releaseConn(T conn) |
private void |
releaseConn(T conn,
boolean ioerr) |
void |
releaseConn(T conn,
Exception e) |
void |
setBuilder(ConnBuilder<T> builder) |
String |
toString() |
protected static final org.slf4j.Logger log
int maxActive
int maxIdle
long maxWait
long idleRemoveDelay
long pulseInteval
ConnBuilder<T extends BaseConn> builder
static ISearchConnPool.PulseThread pulseT
static List<ISearchConnPool<?>> all_pools
List<ISearchConnPool.AConn> connlist
SouwenConfig conf
public ISearchConnPool(ConnBuilder<T> builder, int ma, int mi, long mw, int ird, long pi)
public void initialize(SouwenConfig conf) throws Exception
initialize 在接口中 ConnPool<T extends BaseConn>Exceptionpublic void releaseConn(T conn) throws Exception
releaseConn 在接口中 ConnPool<T extends BaseConn>Exceptionpublic void releaseConn(T conn, Exception e) throws Exception
releaseConn 在接口中 ConnPool<T extends BaseConn>Exceptionprivate void releaseConn(T conn, boolean ioerr)
public void setBuilder(ConnBuilder<T> builder)
setBuilder 在接口中 ConnPool<T extends BaseConn>Copyright © 2023. All rights reserved.