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

graphql.schema.diffing.SchemaDiffingRunningCheck Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.schema.diffing;

import java.util.concurrent.atomic.AtomicBoolean;

class SchemaDiffingRunningCheck {
    private final AtomicBoolean wasStopped = new AtomicBoolean(false);

    void check() {
        if (wasStopped.get()) {
            throw new SchemaDiffingCancelledException(false);
        }
    }

    void stop() {
        wasStopped.set(true);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy