Interface ProcessingLifecycle.Phase
- All Known Implementing Classes:
ProcessingLifecycle.DefaultPhases
- Enclosing interface:
ProcessingLifecycle
public static interface ProcessingLifecycle.Phase
Interface describing a possible phase for the
ProcessingLifecycle to perform steps in.
Lifecycle actions are invoked in the order() of their respective phase, where action in phases with the
same order may be invoked in parallel.
- Since:
- 5.0.0
- Author:
- Allard Buijze, Gerard Klijs, Milan Savić, Mitchell Herrijgers, Sara Pellegrini, Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisAfter(ProcessingLifecycle.Phase other) default booleanintorder()The order of this phase compared to other phases.
-
Method Details
-
order
int order()The order of this phase compared to other phases. Phases with the same order are considered "simultaneous" and may have their handlers invoked in parallel.- Returns:
- The
intdescribing the relative order of this phase.
-
isBefore
Checks if theorder()ofthis Phaseis smaller than the order of theother. Returnstrueif this is the case andfalseotherwise.- Parameters:
other- TheProcessingLifecycle.Phaseto validate if itsorderis larger than the order ofthis Phase.- Returns:
trueif theorder()ofthis Phaseis smaller than the order of theother Phase.
-
isAfter
Checks if theorder()ofthis Phaseis larger than the order of theother. Returnstrueif this is the case andfalseotherwise.- Parameters:
other- TheProcessingLifecycle.Phaseto validate if itsorderis smaller than the order ofthis Phase.- Returns:
trueif theorder()ofthis Phaseis larger than the order of theother Phase.
-