package com.atlassian.stash.internal.maintenance;

import com.atlassian.bitbucket.i18n.I18nService;
import com.atlassian.stash.internal.db.DatabaseManager;
import com.atlassian.stash.internal.maintenance.latch.LatchMode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

public class LatchAndDrainDatabaseMigrationStep extends LatchAndDrainDatabaseStep {
    @Autowired
    @SuppressWarnings("SpringJavaAutowiredMembersInspection")
    public LatchAndDrainDatabaseMigrationStep(I18nService i18nService, DatabaseManager databaseManager, LatchMode latchMode,
                                              @Value("${migration.drain.db.timeout}") int drainTimeoutSeconds,
                                              @Value("${migration.drain.db.force.timeout}") int forceDrainTimeoutSeconds) {
        super(i18nService, databaseManager, latchMode, drainTimeoutSeconds, forceDrainTimeoutSeconds);
    }
}
