Interface RecycleManagedObjectParameter<MO extends ManagedObject>
public interface RecycleManagedObjectParameter<MO extends ManagedObject>
Parameter to the recycle
ManagedFunction.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObtains possibleCleanupEscalationinstances that occurred in cleaning up previousManagedObjectinstances.Obtains theManagedObjectbeing recycled.static <M extends ManagedObject>
RecycleManagedObjectParameter<M>getRecycleManagedObjectParameter(ManagedFunctionContext<?, ?> context) Convenience method to obtain theRecycleManagedObjectParameterfrom theManagedFunctionContext.voidInvoked at the end of recycling to re-use theManagedObject.
-
Method Details
-
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.
-