| |
|
| org.logicalcobwebs.proxool.ConnectionInfoIF
All known Subclasses: org.logicalcobwebs.proxool.ConnectionInfo,
ConnectionInfoIF | public interface ConnectionInfoIF extends Comparable(Code) | | Provides information about an individual connection. You can get a collection
of these from
ProxoolFacade.getConnectionInfos 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();
...
}
version: $Revision: 1.12 $, $Date: 2005/10/07 08:18:23 $ author: billhorsman author: $Author: billhorsman $ (current maintainer) |
MARK_FOR_EXPIRY | final static int MARK_FOR_EXPIRY(Code) | | The next time this connection is made available we should expire it.
See Also: ConnectionInfoIF.getMark |
getAge | long getAge()(Code) | | The age in millseconds since this connection was built
|
getBirthTime | long getBirthTime()(Code) | | The time that this connection was created.
The number of milliseconds
since midnight, January 1, 1970 UTC.
|
getDelegateHashcode | String getDelegateHashcode()(Code) | | The hashcode (in hex) of the delegate connection object. This
uniquely identifies the underlying connection.
delegateHashcode |
getDelegateUrl | String getDelegateUrl()(Code) | | The URL that this connection is using (the definition
might have changed since this connection was built).
delegateUrl |
getId | long getId()(Code) | | A unique ID for this connection
|
getMark | int getMark()(Code) | | 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. So we mark it instead and when it
stops being active we can perform the necessary operation.
The only thing we do at the moment is
ConnectionInfoIF.MARK_FOR_EXPIRY 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.
|
getProxyHashcode | String getProxyHashcode()(Code) | | The hashcode (in hex) of the ProxyConnection object. This
uniquely identifies this proxy connection.
proxyHashcode |
getRequester | String getRequester()(Code) | | The name of the thread that asked for this connection.
|
getTimeLastStartActive | long getTimeLastStartActive()(Code) | | When this connection was last given out. The number of milliseconds
since midnight, January 1, 1970 UTC.
|
getTimeLastStopActive | long getTimeLastStopActive()(Code) | | When this connection was last given back (or zero if it is still active).
The number of milliseconds
since midnight, January 1, 1970 UTC.
|
|
|
|