E - 池中的项public static class LinkedPool.Element<E> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
activitys
重置空闲次数
|
protected long |
startTime
开始时间点
|
protected int |
state
检查状态
|
protected Thread |
thread
使用的线程
|
protected int |
times
使用次数
|
protected long |
uptime
使用时长(总)
|
| 构造器和说明 |
|---|
Element() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
activity()
重置空闲时间点
|
void |
clear()
清除项(通常用于空闲时释放资源)
|
String |
formatMessage(String msg) |
int |
getActivitys()
重置空闲次数
|
LinkedPool.Element<E> |
getNext() |
E |
getResource()
池中的资源项
|
int |
getState()
状态 STATE_xxx
|
Thread |
getThread()
使用的线程
|
int |
getTimes()
使用次数
|
int |
getUseup()
当次使用的时间
|
protected void |
idle()
空闲
|
protected void |
inUse()
使用中
|
boolean |
isEmpty() |
boolean |
isIdle() |
protected void |
setResource(E resource) |
String |
toString() |
StringBuilder |
toString(StringBuilder builder,
boolean trace) |
protected long startTime
protected int activitys
protected int times
protected long uptime
protected int state
protected Thread thread
protected void setResource(E resource)
protected void inUse()
protected void idle()
public int activity()
public void clear()
public boolean isIdle()
public boolean isEmpty()
public LinkedPool.Element<E> getNext()
public int getActivitys()
public int getTimes()
public int getUseup()
public Thread getThread()
public E getResource()
public int getState()
public StringBuilder toString(StringBuilder builder, boolean trace)
Copyright © 2022. All rights reserved.