Class Commit.Accepted
- java.lang.Object
-
- org.apache.cassandra.service.paxos.Commit
-
- org.apache.cassandra.service.paxos.Commit.Proposal
-
- org.apache.cassandra.service.paxos.Commit.Accepted
-
- Direct Known Subclasses:
Commit.AcceptedWithTTL
,Commit.Agreed
- Enclosing class:
- Commit
public static class Commit.Accepted extends Commit.Proposal
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.service.paxos.Commit
Commit.Accepted, Commit.AcceptedWithTTL, Commit.Agreed, Commit.CommitSerializer<T extends Commit>, Commit.Committed, Commit.CommittedWithTTL, Commit.Proposal
-
-
Field Summary
Fields Modifier and Type Field Description static Commit.CommitSerializer<Commit.Accepted>
serializer
-
Constructor Summary
Constructors Constructor Description Accepted(Ballot ballot, PartitionUpdate update)
Accepted(Commit commit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Commit.Accepted
latestAccepted(Commit.Accepted a, Commit.Accepted b)
LikeCommit.latest(Commit, Commit)
but also takes into account deletion timestatic Commit.Accepted
none(DecoratedKey partitionKey, TableMetadata metadata)
java.lang.String
toString()
-
Methods inherited from class org.apache.cassandra.service.paxos.Commit.Proposal
accepted, agreed, empty, of
-
Methods inherited from class org.apache.cassandra.service.paxos.Commit
compareWith, emptyCommit, equals, hasBallot, hashCode, hasSameBallot, isAfter, isAfter, isAfter, isAfter, isAfter, isAfter, isBefore, isReproposalOf, isSameOrAfter, latest, latest, latest, makeMutation, newPrepare, newProposal, timestampsClash, timestampsClash, toString
-
-
-
-
Field Detail
-
serializer
public static final Commit.CommitSerializer<Commit.Accepted> serializer
-
-
Constructor Detail
-
Accepted
public Accepted(Ballot ballot, PartitionUpdate update)
-
Accepted
public Accepted(Commit commit)
-
-
Method Detail
-
none
public static Commit.Accepted none(DecoratedKey partitionKey, TableMetadata metadata)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCommit.Proposal
-
latestAccepted
public static Commit.Accepted latestAccepted(Commit.Accepted a, Commit.Accepted b)
LikeCommit.latest(Commit, Commit)
but also takes into account deletion time
-
-