throw new IllegalStateException("Externalized checkpoints enabled, but no cleanup mode configured."); retentionAfterTermination = cleanup.deleteOnCancellation() ? CheckpointRetentionPolicy.RETAIN_ON_FAILURE : CheckpointRetentionPolicy.RETAIN_ON_CANCELLATION;
throw new IllegalStateException("Externalized checkpoints enabled, but no cleanup mode configured."); retentionAfterTermination = cleanup.deleteOnCancellation() ? CheckpointRetentionPolicy.RETAIN_ON_FAILURE : CheckpointRetentionPolicy.RETAIN_ON_CANCELLATION;
throw new IllegalStateException("Externalized checkpoints enabled, but no cleanup mode configured."); retentionAfterTermination = cleanup.deleteOnCancellation() ? CheckpointRetentionPolicy.RETAIN_ON_FAILURE : CheckpointRetentionPolicy.RETAIN_ON_CANCELLATION;
throw new IllegalStateException("Externalized checkpoints enabled, but no cleanup mode configured."); externalizedCheckpointSettings = ExternalizedCheckpointSettings.externalizeCheckpoints(cleanup.deleteOnCancellation()); } else { externalizedCheckpointSettings = ExternalizedCheckpointSettings.none();