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

io.github.factoryfx.copperbridge.PersistentEngineContainer Maven / Gradle / Ivy

package io.github.factoryfx.copperbridge;

import org.copperengine.core.batcher.impl.BatcherImpl;
import org.copperengine.core.persistent.PersistentScottyEngine;

class PersistentEngineContainer {

    final PersistentScottyEngine persistentProcessingEngine;
    private final BatcherImpl batcher;

    PersistentEngineContainer(PersistentScottyEngine persistentProcessingEngine, BatcherImpl batcher) {
        this.persistentProcessingEngine = persistentProcessingEngine;
        this.batcher = batcher;
    }

    void startup() {
        batcher.startup();
        persistentProcessingEngine.startup();
    }

    void shutdown() {
        persistentProcessingEngine.shutdown();
        batcher.shutdown();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy