io.alphatier.java.CommitResult 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;
import java.util.Map;
public final class CommitResult {
private final Collection acceptedActions;
private final Map> rejectedActions;
private final LazySnapshot preSnapshot;
private final LazySnapshot postSnapshot;
public CommitResult(final Collection acceptedActions,
final Map> rejectedActions, final LazySnapshot preSnapshot,
final LazySnapshot postSnapshot) {
this.acceptedActions = acceptedActions;
this.rejectedActions = rejectedActions;
this.preSnapshot = preSnapshot;
this.postSnapshot = postSnapshot;
}
public Collection getAcceptedActions() {
return acceptedActions;
}
public Map> getRejectedActions() {
return rejectedActions;
}
public LazySnapshot getPreSnapshot() {
return preSnapshot;
}
public LazySnapshot getPostSnapshot() {
return postSnapshot;
}
@Override
public String toString() {
return "CommitResult{" +
"acceptedActions=" + acceptedActions +
", rejectedActions=" + rejectedActions +
", preSnapshot=" + preSnapshot +
", postSnapshot=" + postSnapshot +
'}';
}
}