E - 池中的项public static class LinkedPool.Element<E> extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
清除项(通常用于空闲时释放资源)
|
E |
getResource()
池中的资源项
|
int |
getState()
状态 STATE_xxx
|
Thread |
getThread()
使用的线程
|
int |
getTimes()
使用次数
|
int |
getUseup()
当次使用的时间
|
boolean |
isEmpty() |
boolean |
isIdle() |
String |
toString() |
StringBuilder |
toString(StringBuilder sb) |
public void clear()
public boolean isIdle()
public boolean isEmpty()
public int getTimes()
public int getUseup()
public Thread getThread()
public E getResource()
public int getState()
public StringBuilder toString(StringBuilder sb)
Copyright © 2020. All rights reserved.