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

io.alphatier.java.Commit Maven / Gradle / Ivy

Go to download

Alphatier is a resource management library. It is designed to allow different schedulers to share the resources of a pool of executors in order to execute tasks with those.

There is a newer version: 0.2.0
Show newest version
package io.alphatier.java;

import java.util.Collection;

public final class Commit {
    private final String schedulerId;
    private final Collection actions;
    private final boolean allowPartialCommit;

    public Commit(final String schedulerId, final Collection actions, final boolean allowPartialCommit) {
        this.schedulerId = schedulerId;
        this.actions = actions;
        this.allowPartialCommit = allowPartialCommit;
    }

    public String getSchedulerId() {
        return schedulerId;
    }

    public Collection getActions() {
        return actions;
    }

    public boolean isAllowPartialCommit() {
        return allowPartialCommit;
    }

    @Override
    public String toString() {
        return "Commit{" +
                "schedulerId='" + schedulerId + '\'' +
                ", actions=" + actions +
                ", allowPartialCommit=" + allowPartialCommit +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy