public abstract class ConnectionCacheBase extends Object implements ConnectionCache
| Modifier and Type | Field and Description |
|---|---|
protected String |
cacheType |
protected String |
monitoringName |
protected ORB |
orb |
protected long |
timestamp |
protected static ORBUtilSystemException |
wrapper |
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionCacheBase(ORB orb,
String cacheType,
String monitoringName) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
backingStore() |
protected void |
cacheStatisticsInfo() |
void |
close()
Close all connections in the connection cache.
|
protected void |
dprintCreation() |
String |
getCacheType() |
String |
getMonitoringName() |
long |
numberOfBusyConnections() |
long |
numberOfConnections() |
long |
numberOfIdleConnections() |
boolean |
reclaim()
Discarding least recently used Connections that are not busy
This method must be synchronized since one WorkerThread could
be reclaming connections inside the synchronized backingStore
block and a second WorkerThread (or a SelectorThread) could have
already executed the if (numberOfConnections <= ....
|
void |
stampTime(Connection c) |
abstract Collection |
values() |
protected static final ORBUtilSystemException wrapper
protected ORB orb
protected long timestamp
protected String cacheType
protected String monitoringName
@NameValue public String getCacheType()
getCacheType in interface ConnectionCachepublic void stampTime(Connection c)
stampTime in interface ConnectionCachepublic void close()
ConnectionCacheclose in interface ConnectionCachepublic long numberOfConnections()
numberOfConnections in interface ConnectionCachepublic long numberOfIdleConnections()
numberOfIdleConnections in interface ConnectionCachepublic long numberOfBusyConnections()
numberOfBusyConnections in interface ConnectionCachepublic boolean reclaim()
reclaim in interface ConnectionCachepublic String getMonitoringName()
getMonitoringName in interface ConnectionCachepublic abstract Collection values()
protected abstract Object backingStore()
protected void dprintCreation()
protected void cacheStatisticsInfo()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.