Class GenericProcessingRequest<T>
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest<T>
com.evolveum.midpoint.repo.common.activity.run.processing.GenericProcessingRequest<T>
- All Implemented Interfaces:
AcknowledgementSink
Request to process a generic data item.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest
identifier, item
-
Constructor Summary
ConstructorDescriptionGenericProcessingRequest
(int sequentialNumber, T item, @NotNull IterativeActivityRun<T, ?, ?, ?> activityRun) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledge
(boolean release, OperationResult result) Informs the receiver that a particular item was processed (successfully or not).@Nullable String
OID of the object connected to the item being processed (usually the object itself or related shadow).@NotNull IterationItemInformation
This can be overridden in cases when we know how to derive a name or display name or the type for the item.@Nullable SynchronizationSituationType
TODO reconsidertoString()
Methods inherited from class com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest
createRecordingTargetForObject, getIdentifier, getItem, getRootTaskOid, getSequentialNumber, getType, getType, process
-
Constructor Details
-
GenericProcessingRequest
public GenericProcessingRequest(int sequentialNumber, T item, @NotNull @NotNull IterativeActivityRun<T, ?, ?, ?> activityRun)
-
-
Method Details
-
getIterationItemInformation
This can be overridden in cases when we know how to derive a name or display name or the type for the item.- Specified by:
getIterationItemInformation
in classItemProcessingRequest<T>
-
getOperationExecutionRecordingTarget
- Specified by:
getOperationExecutionRecordingTarget
in classItemProcessingRequest<T>
- Returns:
- Object to which we will write an operation execution record (plus auxiliary information).
-
getObjectOidToRecordRetryTrigger
- Specified by:
getObjectOidToRecordRetryTrigger
in classItemProcessingRequest<T>
- Returns:
- OID of object to which we put a trigger causing operation retry (if known)
-
acknowledge
Description copied from interface:AcknowledgementSink
Informs the receiver that a particular item was processed (successfully or not).- Parameters:
release
- If true, the item can be forgotten. If false, we want to receive that item again, presumably to be reprocessed later.result
- Operation result in context of which the acknowledgement should take place. It is useful if the acknowledgement itself can take considerable time, e.g. when it involves a communication with an external party.
-
getItemOid
Description copied from class:ItemProcessingRequest
OID of the object connected to the item being processed (usually the object itself or related shadow). TODO reconsider- Specified by:
getItemOid
in classItemProcessingRequest<T>
-
getSynchronizationSituationOnProcessingStart
@Nullable public @Nullable SynchronizationSituationType getSynchronizationSituationOnProcessingStart()Description copied from class:ItemProcessingRequest
TODO reconsider- Specified by:
getSynchronizationSituationOnProcessingStart
in classItemProcessingRequest<T>
-
toString
- Overrides:
toString
in classItemProcessingRequest<T>
-