/** * Create a new instance and register it with the given {@link PlatformExecution}. */ ExecutionStage(PlatformExecution platformExecution, ExecutionStageLoop executionStageLoop, int sequenceNumber) { this.platformExecution = platformExecution; this.sequenceNumber = sequenceNumber; this.executionStageLoop = executionStageLoop; if (this.executionStageLoop != null) { this.executionStageLoop.add(this); } this.platformExecution.addStage(this); }