public static class PaxosState.Snapshot
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Commit.Accepted |
accepted |
Commit.Committed |
committed |
Ballot |
promised |
Ballot |
promisedWrite |
Constructor and Description |
---|
Snapshot(Ballot promised,
Ballot promisedWrite,
Commit.Accepted accepted,
Commit.Committed committed) |
Modifier and Type | Method and Description |
---|---|
Ballot |
latestWitnessedOrLowBound() |
Ballot |
latestWitnessedOrLowBound(Ballot latestWriteOrLowBound) |
Ballot |
latestWriteOrLowBound() |
static PaxosState.Snapshot |
merge(PaxosState.Snapshot a,
PaxosState.Snapshot b) |
@Nonnull public final Ballot promised
@Nonnull public final Ballot promisedWrite
@Nullable public final Commit.Accepted accepted
@Nonnull public final Commit.Committed committed
public Snapshot(@Nonnull Ballot promised, @Nonnull Ballot promisedWrite, @Nullable Commit.Accepted accepted, @Nonnull Commit.Committed committed)
@Nonnull public Ballot latestWitnessedOrLowBound(Ballot latestWriteOrLowBound)
@Nonnull public Ballot latestWitnessedOrLowBound()
@Nonnull public Ballot latestWriteOrLowBound()
public static PaxosState.Snapshot merge(PaxosState.Snapshot a, PaxosState.Snapshot b)
Copyright © 2009- The Apache Software Foundation