Class RoundRobinStrategy

  • All Implemented Interfaces:
    NodeAllocationStrategy

    public class RoundRobinStrategy
    extends AbstractNodeAllocationStrategy
    This strategy creates n wal nodes and allocate them by round-robin strategy. In other words, several identifiers (like data regions) can share one wal node.
    • Constructor Detail

      • RoundRobinStrategy

        public RoundRobinStrategy​(int maxWalNodeNum)
    • Method Detail

      • applyForWALNode

        public IWALNode applyForWALNode​(java.lang.String applicantUniqueId)
        Description copied from interface: NodeAllocationStrategy
        Allocate one wal node for the applicant
      • getNodesSnapshot

        public java.util.List<WALNode> getNodesSnapshot()
        Description copied from interface: NodeAllocationStrategy
        Get all wal nodes
      • clear

        public void clear()