org.apache.cassandra.service.paxos

## Class Commit

- java.lang.Object
- - org.apache.cassandra.service.paxos.Commit

-     public class Commit
      extends java.lang.Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Commit.CommitSerializer`

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `java.util.UUID` | `ballot`
    `static Commit.CommitSerializer` | `serializer`
    `PartitionUpdate` | `update`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Commit(java.util.UUID ballot, PartitionUpdate update)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Commit` | `emptyCommit(DecoratedKey key, CFMetaData metadata)`
    `boolean` | `equals(java.lang.Object o)`
    `boolean` | `hasBallot(java.util.UUID ballot)`
    `int` | `hashCode()`
    `boolean` | `isAfter(Commit other)`
    `Mutation` | `makeMutation()`
    `static Commit` | `newPrepare(DecoratedKey key, CFMetaData metadata, java.util.UUID ballot)`
    `static Commit` | `newProposal(java.util.UUID ballot, PartitionUpdate update)`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### serializer

          public static final Commit.CommitSerializer serializer

    - #### ballot

          public final java.util.UUID ballot

    - #### update

          public final PartitionUpdate update

  - ### Constructor Detail

    - #### Commit

          public Commit(java.util.UUID ballot,
                        PartitionUpdate update)

  - ### Method Detail

    - #### newPrepare

          public static Commit newPrepare(DecoratedKey key,
                                          CFMetaData metadata,
                                          java.util.UUID ballot)

    - #### newProposal

          public static Commit newProposal(java.util.UUID ballot,
                                           PartitionUpdate update)

    - #### emptyCommit

          public static Commit emptyCommit(DecoratedKey key,
                                           CFMetaData metadata)

    - #### isAfter

          public boolean isAfter(Commit other)

    - #### hasBallot

          public boolean hasBallot(java.util.UUID ballot)

    - #### makeMutation

          public Mutation makeMutation()

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2018 The Apache Software Foundation