Class ReplicaPlan.ForWrite

    • Method Detail

      • writeQuorum

        public int writeQuorum()
      • pending

        public EndpointsForToken pending()
        Replicas that a region of the ring is moving to; not yet ready to serve reads, but should receive writes
      • liveAndDown

        public EndpointsForToken liveAndDown()
        Replicas that can participate in the write - this always includes all nodes (pending and natural) in all DCs, except for paxos LOCAL_QUORUM (which is local DC only)
      • live

        public EndpointsForToken live()
        The live replicas present in liveAndDown, usually derived from FailureDetector.isReplicaAlive
      • liveUncontacted

        public EndpointsForToken liveUncontacted()
        Calculate which live endpoints we could have contacted, but chose not to
      • isAlive

        public boolean isAlive​(Replica replica)
        Test liveness, consistent with the upfront analysis done for this operation (i.e. test membership of live())
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object