Class SyncItemProcessingRequest<SE extends SynchronizationEvent>
java.lang.Object
com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest<SE>
com.evolveum.midpoint.model.impl.sync.tasks.SyncItemProcessingRequest<SE>
- All Implemented Interfaces:
CorrelatableProcessingRequest
,AcknowledgementSink
,Comparable<SyncItemProcessingRequest<SE>>
public class SyncItemProcessingRequest<SE extends SynchronizationEvent>
extends ItemProcessingRequest<SE>
implements Comparable<SyncItemProcessingRequest<SE>>, CorrelatableProcessingRequest
TODO
It is comparable on the sequence number.
-
Field Summary
Fields inherited from class com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingRequest
identifier, item
-
Constructor Summary
ConstructorDescriptionSyncItemProcessingRequest
(SE item, IterativeActivityRun<SE, ?, ?, ?> activityRun) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledge
(boolean release, OperationResult result) Informs the receiver that a particular item was processed (successfully or not).int
compareTo
(@NotNull SyncItemProcessingRequest<SE> o) @Nullable String
OID of the object connected to the item being processed (usually the object itself or related shadow).@NotNull IterationItemInformation
@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
-
SyncItemProcessingRequest
-
-
Method Details
-
getCorrelationValue
- Specified by:
getCorrelationValue
in interfaceCorrelatableProcessingRequest
- Returns:
- The value against which we match other requests to be aligned with this one.
-
getOperationExecutionRecordingTarget
- Specified by:
getOperationExecutionRecordingTarget
in classItemProcessingRequest<SE extends SynchronizationEvent>
- Returns:
- Object to which we will write an operation execution record (plus auxiliary information).
-
getObjectOidToRecordRetryTrigger
- Specified by:
getObjectOidToRecordRetryTrigger
in classItemProcessingRequest<SE extends SynchronizationEvent>
- Returns:
- OID of object to which we put a trigger causing operation retry (if known)
-
getIterationItemInformation
- Specified by:
getIterationItemInformation
in classItemProcessingRequest<SE extends SynchronizationEvent>
-
acknowledge
Description copied from interface:AcknowledgementSink
Informs the receiver that a particular item was processed (successfully or not).- Specified by:
acknowledge
in interfaceAcknowledgementSink
- 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.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SE extends SynchronizationEvent>
-
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<SE extends SynchronizationEvent>
-
getSynchronizationSituationOnProcessingStart
@Nullable public @Nullable SynchronizationSituationType getSynchronizationSituationOnProcessingStart()Description copied from class:ItemProcessingRequest
TODO reconsider- Specified by:
getSynchronizationSituationOnProcessingStart
in classItemProcessingRequest<SE extends SynchronizationEvent>
-
toString
- Overrides:
toString
in classItemProcessingRequest<SE extends SynchronizationEvent>
-