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

io.alphatier.java.CommitResult 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;
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 +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy