Class ManagedObjectPoolContextImpl
java.lang.Object
net.officefloor.frame.impl.execute.pool.ManagedObjectPoolContextImpl
- All Implemented Interfaces:
ManagedObjectPoolContext
ManagedObjectPoolContext implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedObjectPoolContextImpl(ManagedObjectSource<?, ?> managedObjectSource) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionManagedObjectSource<?,?> ManagedObjectSourceto have itsManagedObjectinstances pooled.booleanIndicates if the currentThreadis managed.
-
Constructor Details
-
ManagedObjectPoolContextImpl
Instantiate.- Parameters:
managedObjectSource-ManagedObjectSource.
-
-
Method Details
-
getManagedObjectSource
Description copied from interface:ManagedObjectPoolContextManagedObjectSourceto have itsManagedObjectinstances pooled.- Specified by:
getManagedObjectSourcein interfaceManagedObjectPoolContext- Returns:
ManagedObjectSource.
-
isCurrentThreadManaged
public boolean isCurrentThreadManaged()Description copied from interface:ManagedObjectPoolContextIndicates if the currentThreadis managed. A managedThreadwill notify theThreadCompletionListenerinstances of its completion.- Specified by:
isCurrentThreadManagedin interfaceManagedObjectPoolContext- Returns:
trueif the currentThreadis managed.
-