io.alphatier.java.Commit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alphatier-java Show documentation
Show all versions of alphatier-java Show documentation
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.
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 +
'}';
}
}