Class Quorum

java.lang.Object
io.atomix.raft.utils.Quorum

public class Quorum extends Object
Quorum helper. Completes and invokes a callback when the number of succeed() or fail() calls equal the expected quorum count. Not threadsafe.
  • Constructor Details

  • Method Details

    • succeed

      public Quorum succeed()
      Indicates that a call in the quorum succeeded.
    • fail

      public Quorum fail()
      Indicates that a call in the quorum failed.
    • cancel

      public void cancel()
      Cancels the quorum. Once this method has been called, the quorum will be marked complete and the handler will never be called.