Skip to content

Commit 06eac32

Browse files
committed
Remove unused toInitializing() transitions from Draining and Failed
These transitions are valid in the proposal's state machine but have no callers today — reload/recovery is deferred. Removing to avoid premature API commitment; they can be re-added when reload is implemented. Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Sam Barker <sam@quadrocket.co.uk>
1 parent aefb381 commit 06eac32

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

kroxylicious-runtime/src/main/java/io/kroxylicious/proxy/internal/VirtualClusterLifecycleState.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ public Stopped toStopped() {
6565
return new Stopped(null);
6666
}
6767

68-
/**
69-
* Drain complete, cluster reinitialising with new configuration.
70-
* @return the new initializing state
71-
*/
72-
public Initializing toInitializing() {
73-
return new Initializing();
74-
}
7568
}
7669

7770
/** Configuration was not viable. All resources have been released. */
@@ -88,14 +81,6 @@ record Failed(Throwable cause) implements VirtualClusterLifecycleState {
8881
public Stopped toStopped() {
8982
return new Stopped(cause);
9083
}
91-
92-
/**
93-
* A retry is requested with corrected configuration.
94-
* @return the new initializing state
95-
*/
96-
public Initializing toInitializing() {
97-
return new Initializing();
98-
}
9984
}
10085

10186
/** Terminal state. The cluster has been permanently removed. */

0 commit comments

Comments
 (0)