All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.castled.CastledLifecycleManager Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.castled;

import com.google.inject.Inject;
import io.castled.jarvis.scheduler.JarvisScheduler;
import io.dropwizard.lifecycle.Managed;

public class CastledLifecycleManager implements Managed {

    private final JarvisScheduler jarvisScheduler;

    @Inject
    public CastledLifecycleManager(JarvisScheduler jarvisScheduler) {
        this.jarvisScheduler = jarvisScheduler;
    }

    @Override
    public void start() throws Exception {
        this.jarvisScheduler.startScheduler();
    }

    @Override
    public void stop() throws Exception {
        this.jarvisScheduler.close();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy