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 possibleCleanupEscalationinstances that occurred in cleaning up previousManagedObjectinstances.MOgetManagedObject()Obtains theManagedObjectbeing recycled.static <M extends ManagedObject>
RecycleManagedObjectParameter<M>getRecycleManagedObjectParameter(ManagedFunctionContext<?,?> context)Convenience method to obtain theRecycleManagedObjectParameterfrom theManagedFunctionContext.voidreuseManagedObject()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 theRecycleManagedObjectParameterfrom theManagedFunctionContext.- Type Parameters:
M-ManagedObjecttype.- Parameters:
context-ManagedFunctionContext.- Returns:
RecycleManagedObjectParameter.
-
getManagedObject
MO getManagedObject()
Obtains theManagedObjectbeing recycled.- Returns:
ManagedObjectbeing recycled.
-
reuseManagedObject
void reuseManagedObject()
Invoked at the end of recycling to re-use the
Should this method not be invoked, theManagedObject.ManagedObjectwill be destroyed.
-
getCleanupEscalations
CleanupEscalation[] getCleanupEscalations()
Obtains possibleCleanupEscalationinstances that occurred in cleaning up previousManagedObjectinstances.- Returns:
- Possible
CleanupEscalationinstances.
-
-