Class ManagedObjectPoolContextImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.pool.ManagedObjectPoolContextImpl
-
- All Implemented Interfaces:
ManagedObjectPoolContext
public class ManagedObjectPoolContextImpl extends java.lang.Object implements ManagedObjectPoolContext
ManagedObjectPoolContext
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectPoolContextImpl(ManagedObjectSource<?,?> managedObjectSource)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedObjectSource<?,?>
getManagedObjectSource()
ManagedObjectSource
to have itsManagedObject
instances pooled.boolean
isCurrentThreadManaged()
Indicates if the currentThread
is managed.
-
-
-
Constructor Detail
-
ManagedObjectPoolContextImpl
public ManagedObjectPoolContextImpl(ManagedObjectSource<?,?> managedObjectSource)
Instantiate.- Parameters:
managedObjectSource
-ManagedObjectSource
.
-
-
Method Detail
-
getManagedObjectSource
public ManagedObjectSource<?,?> getManagedObjectSource()
Description copied from interface:ManagedObjectPoolContext
ManagedObjectSource
to have itsManagedObject
instances pooled.- Specified by:
getManagedObjectSource
in interfaceManagedObjectPoolContext
- Returns:
ManagedObjectSource
.
-
isCurrentThreadManaged
public boolean isCurrentThreadManaged()
Description copied from interface:ManagedObjectPoolContext
Indicates if the currentThread
is managed. A managedThread
will notify theThreadCompletionListener
instances of its completion.- Specified by:
isCurrentThreadManaged
in interfaceManagedObjectPoolContext
- Returns:
true
if the currentThread
is managed.
-
-