Interface StatePreprocessingSegment
-
- All Known Implementing Classes:
VersionDuplicateHandler,VersionHandler
public interface StatePreprocessingSegmentA segment that is applied during state modifications.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidafterLastModification(MdibStateModifications modifications, MdibStorage mdibStorage)Function that is invoked after the last modification in the processing chain has been applied.default voidbeforeFirstModification(MdibStateModifications modifications, MdibStorage mdibStorage)Function that is invoked before the first modification in the processing chain is applied.voidprocess(MdibStateModifications modifications, AbstractState modification, MdibStorage storage)In a sequence of modifications this function processes one modification.
-
-
-
Method Detail
-
beforeFirstModification
default void beforeFirstModification(MdibStateModifications modifications, MdibStorage mdibStorage)
Function that is invoked before the first modification in the processing chain is applied.Default behavior is do nothing.
- Parameters:
modifications- all modifications for preprocessing.mdibStorage- the MDIB storage to be used by the callback.
-
process
void process(MdibStateModifications modifications, AbstractState modification, MdibStorage storage) throws Exception
In a sequence of modifications this function processes one modification.- Parameters:
modifications- all modifications that are being processed.modification- the current modification to be processed.storage- the MDIB storage for access.- Throws:
Exception- an arbitrary exception if something goes wrong.
-
afterLastModification
default void afterLastModification(MdibStateModifications modifications, MdibStorage mdibStorage)
Function that is invoked after the last modification in the processing chain has been applied.Default behavior is do nothing.
- Parameters:
modifications- all modifications for preprocessing.mdibStorage- the MDIB storage to be used by the callback.
-
-