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

io.descoped.dc.api.Termination Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package io.descoped.dc.api;

import java.util.concurrent.atomic.AtomicBoolean;

public class Termination {

    private final AtomicBoolean terminated = new AtomicBoolean(false);

    private Termination() {
    }

    public void terminate() {
        terminated.set(true);
    }

    public boolean isTerminated() {
        return terminated.get();
    }

    public static Termination create() {
        return new Termination();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy