public class PooledDataSourceRegistry extends ReentrantReadWriteLock
Modifier and Type | Class and Description |
---|---|
static interface |
PooledDataSourceRegistry.Factory |
static interface |
PooledDataSourceRegistry.PooledDataSource |
ReentrantReadWriteLock.ReadLock, ReentrantReadWriteLock.WriteLock
Modifier and Type | Field and Description |
---|---|
protected PooledDataSourceFactory |
poolFactory |
protected Map<String,PooledDataSourceRegistry.PooledDataSource> |
pools |
Constructor and Description |
---|
PooledDataSourceRegistry() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearPool(String name) |
void |
createAlias(String name,
PooledDataSourceRegistry.PooledDataSource pool) |
protected DataSource |
createPool(String dsName,
Reference ref,
Name objectName,
Context nameCtx,
Hashtable<?,?> env) |
DataSource |
getOrCreatePool(Object obj,
Name objectName,
Context nameCtx,
Hashtable<?,?> env) |
<T> T |
getPool(String name,
Class<T> type) |
getOwner, getQueuedReaderThreads, getQueuedThreads, getQueuedWriterThreads, getQueueLength, getReadHoldCount, getReadLockCount, getWaitingThreads, getWaitQueueLength, getWriteHoldCount, hasQueuedThread, hasQueuedThreads, hasWaiters, isFair, isWriteLocked, isWriteLockedByCurrentThread, readLock, toString, writeLock
protected final Map<String,PooledDataSourceRegistry.PooledDataSource> pools
protected final PooledDataSourceFactory poolFactory
public PooledDataSourceRegistry()
public DataSource getOrCreatePool(Object obj, Name objectName, Context nameCtx, Hashtable<?,?> env)
protected DataSource createPool(String dsName, Reference ref, Name objectName, Context nameCtx, Hashtable<?,?> env)
public void createAlias(String name, PooledDataSourceRegistry.PooledDataSource pool)
Copyright © 2015 Nuxeo SA. All rights reserved.