Class ScatterGatherMode

java.lang.Object
com.linkedin.alpini.router.api.ScatterGatherMode
Direct Known Subclasses:
VeniceDelegateMode

public abstract class ScatterGatherMode extends Object
Created by acurtis on 6/20/17.
  • Field Details

    • BROADCAST_BY_PARTITION

      public static final ScatterGatherMode BROADCAST_BY_PARTITION
      Sends request to every partition.
    • BROADCAST_BY_PRIMARY_HOST

      public static final ScatterGatherMode BROADCAST_BY_PRIMARY_HOST
      Sends request to the first host found for every partition, grouped by host.
    • GROUP_BY_PARTITION

      public static final ScatterGatherMode GROUP_BY_PARTITION
      One request per partition.
    • GROUP_BY_PRIMARY_HOST

      public static final ScatterGatherMode GROUP_BY_PRIMARY_HOST
      Sends request for first host for each partition in request, grouped by host
    • GROUP_BY_GREEDY_HOST

      public static final ScatterGatherMode GROUP_BY_GREEDY_HOST
      Sends request for minimal group of hosts. When multiple hosts can serve the same partition, try to use maximal munch to select the smallest number of hosts to handle the partitions.
  • Constructor Details

    • ScatterGatherMode

      protected ScatterGatherMode(@Nonnull String name, boolean broadcast)
  • Method Details