Pool

Undocumented in source.

Constructors

this
this()

Using this constructor means you have to set and initialize the internalPool yourself.

this
this(GenericObjectPoolConfig poolConfig, PooledObjectFactory!(T) factory)
Undocumented in source.

Members

Functions

addObjects
void addObjects(int count)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
closeInternalPool
void closeInternalPool()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
getMaxBorrowWaitTimeMillis
long getMaxBorrowWaitTimeMillis()

Returns the maximum waiting time spent by threads to obtain a resource from this pool.

getMeanBorrowWaitTimeMillis
long getMeanBorrowWaitTimeMillis()

Returns the mean waiting time spent by threads to obtain a resource from this pool.

getNumActive
int getNumActive()

Returns the number of instances currently borrowed from this pool.

getNumIdle
int getNumIdle()

Returns the number of instances currently idle in this pool.

getNumWaiters
int getNumWaiters()

Returns an estimate of the number of threads currently blocked waiting for a resource from this pool.

getResource
T getResource()
Undocumented in source. Be warned that the author may not have intended to support it.
initPool
void initPool(GenericObjectPoolConfig poolConfig, PooledObjectFactory!(T) factory)
Undocumented in source. Be warned that the author may not have intended to support it.
isClosed
bool isClosed()
Undocumented in source. Be warned that the author may not have intended to support it.
returnBrokenResource
void returnBrokenResource(T resource)
Undocumented in source. Be warned that the author may not have intended to support it.
returnBrokenResourceObject
void returnBrokenResourceObject(T resource)
Undocumented in source. Be warned that the author may not have intended to support it.
returnResource
void returnResource(T resource)
Undocumented in source. Be warned that the author may not have intended to support it.
returnResourceObject
void returnResourceObject(T resource)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

internalPool
GenericObjectPool!(T) internalPool;
Undocumented in source.

Meta