Package com.linkedin.alpini.router.api
Class ScatterGatherMode
java.lang.Object
com.linkedin.alpini.router.api.ScatterGatherMode
- Direct Known Subclasses:
VeniceDelegateMode
Created by acurtis on 6/20/17.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ScatterGatherMode
Sends request to every partition.static final ScatterGatherMode
Sends request to the first host found for every partition, grouped by host.static final ScatterGatherMode
Sends request for minimal group of hosts.static final ScatterGatherMode
One request per partition.static final ScatterGatherMode
Sends request for first host for each partition in request, grouped by host -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ScatterGatherMode
final ScatterGatherMode
boolean
int
hashCode()
<H,
P extends ResourcePath<K>, K, R>
CompletionStage<Scatter<H,P, K>> scatter
(Scatter<H, P, K> scatter, String requestMethod, String resourceName, AsyncPartitionFinder<K> partitionFinder, HostFinder<H, R> hostFinder, HostHealthMonitor<H> hostHealthMonitor, R roles) <H,
P extends ResourcePath<K>, K, R>
Scatter<H,P, K> scatter
(Scatter<H, P, K> scatter, String requestMethod, String resourceName, PartitionFinder<K> partitionFinder, HostFinder<H, R> hostFinder, HostHealthMonitor<H> hostHealthMonitor, R roles) Deprecated.toString()
-
Field Details
-
BROADCAST_BY_PARTITION
Sends request to every partition. -
BROADCAST_BY_PRIMARY_HOST
Sends request to the first host found for every partition, grouped by host. -
GROUP_BY_PARTITION
One request per partition. -
GROUP_BY_PRIMARY_HOST
Sends request for first host for each partition in request, grouped by host -
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
-
-
Method Details
-
asBroadcast
-
asScatter
-
scatter
@Deprecated @Nonnull public <H,P extends ResourcePath<K>, Scatter<H,K, R> P, scatterK> (@Nonnull Scatter<H, P, throws RouterExceptionK> scatter, @Nonnull String requestMethod, @Nonnull String resourceName, @Nonnull PartitionFinder<K> partitionFinder, @Nonnull HostFinder<H, R> hostFinder, @Nonnull HostHealthMonitor<H> hostHealthMonitor, @Nonnull R roles) Deprecated.Deprecated method is compatible to old method signature.- Throws:
RouterException
-
scatter
@Nonnull public <H,P extends ResourcePath<K>, CompletionStage<Scatter<H,K, R> P, scatterK>> (@Nonnull Scatter<H, P, K> scatter, @Nonnull String requestMethod, @Nonnull String resourceName, @Nonnull AsyncPartitionFinder<K> partitionFinder, @Nonnull HostFinder<H, R> hostFinder, @Nonnull HostHealthMonitor<H> hostHealthMonitor, @Nonnull R roles) -
toString
-
hashCode
public int hashCode() -
equals
-