Class ManagedObjectPoolBuilderImpl
java.lang.Object
net.officefloor.frame.impl.construct.managedobjectpool.ManagedObjectPoolBuilderImpl
- All Implemented Interfaces:
ManagedObjectPoolBuilder,ManagedObjectPoolConfiguration
public class ManagedObjectPoolBuilderImpl
extends Object
implements ManagedObjectPoolBuilder, ManagedObjectPoolConfiguration
Implements the
ManagedObjectPoolBuilder.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedObjectPoolBuilderImpl(ManagedObjectPoolFactory managedObjectPoolFactory) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThreadCompletionListener(ThreadCompletionListenerFactory threadCompletionListenerFactory) Adds aThreadCompletionListener.Obtains theManagedObjectPoolFactory.Obtains theThreadCompletionListenerFactoryinstances.
-
Constructor Details
-
ManagedObjectPoolBuilderImpl
Instantiate.- Parameters:
managedObjectPoolFactory-ManagedObjectPoolFactory.
-
-
Method Details
-
addThreadCompletionListener
public void addThreadCompletionListener(ThreadCompletionListenerFactory threadCompletionListenerFactory) Description copied from interface:ManagedObjectPoolBuilderAdds a
ThreadCompletionListener.This allows the
ManagedObjectPoolto cache objects toThreadLocalinstances and be notified when theThreadis complete to clean up theThreadLocalstate.- Specified by:
addThreadCompletionListenerin interfaceManagedObjectPoolBuilder- Parameters:
threadCompletionListenerFactory-ThreadCompletionListenerFactory.
-
getManagedObjectPoolFactory
Description copied from interface:ManagedObjectPoolConfigurationObtains theManagedObjectPoolFactory.- Specified by:
getManagedObjectPoolFactoryin interfaceManagedObjectPoolConfiguration- Returns:
ManagedObjectPoolFactory.
-
getThreadCompletionListenerFactories
Description copied from interface:ManagedObjectPoolConfigurationObtains theThreadCompletionListenerFactoryinstances.- Specified by:
getThreadCompletionListenerFactoriesin interfaceManagedObjectPoolConfiguration- Returns:
ThreadCompletionListenerFactoryinstances.
-