|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface ConnectionInfoIF
Provides information about an individual connection. You can get a collection
of these from ProxoolFacade. You
get back information about all the connections in a particular pool.
String alias = "myPool";
Iterator i = ProxoolFacade.getConnectionInfos(alias).iterator();
while (i.hasNext()) {
ConnectionInfoIF c = (ConnectionInfoIF)i.next();
...
}
| 字段摘要 | |
|---|---|
static int |
MARK_FOR_EXPIRY
The next time this connection is made available we should expire it. |
static int |
MARK_FOR_USE
Default - treat as normal |
static int |
STATUS_ACTIVE
The connection is in use |
static int |
STATUS_AVAILABLE
The connection is available for use |
static int |
STATUS_NULL
This is the start and end state of every connection |
static int |
STATUS_OFFLINE
The connection is in use by the house keeping thread |
| 方法摘要 | |
|---|---|
long |
getAge()
The age in millseconds since this connection was built |
Date |
getBirthDate()
Like getBirthTime() but in Date format |
long |
getBirthTime()
The time that this connection was created. |
String |
getDelegateHashcode()
The hashcode (in hex) of the delegate connection object. |
String |
getDelegateUrl()
The URL that this connection is using (the definition might have changed since this connection was built). |
long |
getId()
A unique ID for this connection |
int |
getMark()
Sometimes we want do something to a connection but can't because it is still active and we don't want to disrupt its use. |
String |
getProxyHashcode()
The hashcode (in hex) of the ProxyConnection object. |
String |
getRequester()
The name of the thread that asked for this connection. |
String[] |
getSqlCalls()
A log of the last SQL used on this connection. |
int |
getStatus()
The status of the connection. |
long |
getTimeLastStartActive()
When this connection was last given out. |
long |
getTimeLastStopActive()
When this connection was last given back (or zero if it is still active). |
| 从接口 java.lang.Comparable 继承的方法 |
|---|
compareTo |
| 字段详细信息 |
|---|
static final int MARK_FOR_USE
getMark(),
常量字段值static final int MARK_FOR_EXPIRY
getMark(),
常量字段值static final int STATUS_NULL
getStatus(),
常量字段值static final int STATUS_AVAILABLE
getStatus(),
常量字段值static final int STATUS_ACTIVE
getStatus(),
常量字段值static final int STATUS_OFFLINE
getStatus(),
常量字段值| 方法详细信息 |
|---|
long getBirthTime()
Date getBirthDate()
getBirthTime() but in Date format
long getAge()
long getId()
int getMark()
expire the
connection (if it is too old for instance). And this will happen if the
housekeeper decides it should but the connection is still active.
int getStatus()
null,
available,
active or
offline.
long getTimeLastStartActive()
long getTimeLastStopActive()
String getRequester()
String getProxyHashcode()
String getDelegateHashcode()
String getDelegateUrl()
String[] getSqlCalls()
ConnectionPoolDefinitionIF.isTrace()
is enabled.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||