Package com.linkedin.alpini.router.api
Class Scatter<H,P extends ResourcePath<K>,K>
java.lang.Object
com.linkedin.alpini.router.api.Scatter<H,P,K>
Collection of ScatterGatherRequests for a request to the router. An incoming request is broken up into
one or more ScatterGatherRequest, each of which represents a request which will be sent to a single storage
node. This class holds all of the ScatterGatherRequests for a single incoming request.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOfflineRequest
(ScatterGatherRequest<H, K> request) void
addOnlineRequest
(ScatterGatherRequest<H, K> request) int
int
getPath()
<R> R
getRole()
pathFor
(ScatterGatherRequest<H, K> request)
-
Constructor Details
-
Scatter
-
-
Method Details
-
addOfflineRequest
-
addOnlineRequest
-
getOnlineRequests
-
getOnlineRequestCount
public int getOnlineRequestCount() -
getOfflineRequests
-
getOfflineRequestCount
public int getOfflineRequestCount() -
getPath
-
getRole
@Nonnull public <R> R getRole() -
getPathParser
-
pathFor
-