Class ComponentPool<C>
java.lang.Object
org.smallmind.quorum.pool.Pool
org.smallmind.quorum.pool.complex.ComponentPool<C>
-
Constructor Summary
ConstructorsConstructorDescriptionComponentPool(String name, ComponentInstanceFactory<C> componentInstanceFactory) ComponentPool(String name, ComponentInstanceFactory<C> componentInstanceFactory, ComplexPoolConfig complexPoolConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidintintintvoidvoidvoidremovePin(ComponentPin<C> componentPin, boolean withPrejudice) voidreportErrorOccurred(Exception exception) voidreportLeaseTimeNanos(long leaseTimeNanos) voidreturnInstance(ComponentInstance<C> componentInstance) setComplexPoolConfig(ComplexPoolConfig complexPoolConfig) voidshutdown()voidstartup()voidterminateInstance(ComponentInstance<C> componentInstance)
-
Constructor Details
-
ComponentPool
-
ComponentPool
public ComponentPool(String name, ComponentInstanceFactory<C> componentInstanceFactory, ComplexPoolConfig complexPoolConfig)
-
-
Method Details
-
getPoolName
-
getComponentInstanceFactory
-
getComplexPoolConfig
-
setComplexPoolConfig
-
getExistentialStackTraces
-
addComponentPoolEventListener
-
removeComponentPoolEventListener
-
reportErrorOccurred
-
reportLeaseTimeNanos
public void reportLeaseTimeNanos(long leaseTimeNanos) -
startup
- Throws:
ComponentPoolException
-
shutdown
- Throws:
ComponentPoolException
-
getComponent
- Throws:
ComponentPoolException
-
returnInstance
-
terminateInstance
-
removePin
-
killAllProcessing
public void killAllProcessing() -
getPoolSize
public int getPoolSize() -
getFreeSize
public int getFreeSize() -
getProcessingSize
public int getProcessingSize()
-