Interface RecycleManagedObjectParameter<MO extends ManagedObject>
-
public interface RecycleManagedObjectParameter<MO extends ManagedObject>
Parameter to the recycleManagedFunction
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CleanupEscalation[]
getCleanupEscalations()
Obtains possibleCleanupEscalation
instances that occurred in cleaning up previousManagedObject
instances.MO
getManagedObject()
Obtains theManagedObject
being recycled.static <M extends ManagedObject>
RecycleManagedObjectParameter<M>getRecycleManagedObjectParameter(ManagedFunctionContext<?,?> context)
Convenience method to obtain theRecycleManagedObjectParameter
from theManagedFunctionContext
.void
reuseManagedObject()
Invoked at the end of recycling to re-use theManagedObject
.
-
-
-
Method Detail
-
getRecycleManagedObjectParameter
static <M extends ManagedObject> RecycleManagedObjectParameter<M> getRecycleManagedObjectParameter(ManagedFunctionContext<?,?> context)
Convenience method to obtain theRecycleManagedObjectParameter
from theManagedFunctionContext
.- Type Parameters:
M
-ManagedObject
type.- Parameters:
context
-ManagedFunctionContext
.- Returns:
RecycleManagedObjectParameter
.
-
getManagedObject
MO getManagedObject()
Obtains theManagedObject
being recycled.- Returns:
ManagedObject
being recycled.
-
reuseManagedObject
void reuseManagedObject()
Invoked at the end of recycling to re-use the
Should this method not be invoked, theManagedObject
.ManagedObject
will be destroyed.
-
getCleanupEscalations
CleanupEscalation[] getCleanupEscalations()
Obtains possibleCleanupEscalation
instances that occurred in cleaning up previousManagedObject
instances.- Returns:
- Possible
CleanupEscalation
instances.
-
-