public interface CleanupSequence
JobNode
instances to undertake clean-up.Modifier and Type | Method and Description |
---|---|
CleanupEscalation[] |
getCleanupEscalations()
Obtains the registered
CleanupEscalation instances. |
void |
registerCleanupEscalation(Class<?> objectType,
Throwable escalation)
Registers a
Throwable from attempting to cleanup the
ManagedObject of the object type. |
void |
registerCleanUpJob(JobNode cleanupJob,
TeamIdentifier teamIdentifier)
Registers the
JobNode that undertakes clean-up. |
void registerCleanUpJob(JobNode cleanupJob, TeamIdentifier teamIdentifier)
Registers the JobNode
that undertakes clean-up.
JobNode
instances are executed in the order they are registered.
cleanupJob
- Clean up JobNode
. Each JobNode
is to be
created within its own ProcessState
. This is necessary
as ProcessCompletionListener
are registered to
undertake the next clean up JobNode
. Note:
JobNode
instances may invoke other JobNode
instances for clean up, so the whole ProcessState
must
complete before the next JobNode
may be started
(typically because there may be dependencies between
JobNode
instances that must be respected in sequential
clean up).teamIdentifier
- TeamIdentifier
of the current Team
executing.CleanupEscalation[] getCleanupEscalations()
CleanupEscalation
instances.CleanupEscalation
instances.void registerCleanupEscalation(Class<?> objectType, Throwable escalation)
Throwable
from attempting to cleanup the
ManagedObject
of the object type.objectType
- Object type of the ManagedObject
.escalation
- Escalation
.Copyright © 2005–2016. All rights reserved.