class FederationResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FederationResult.Builder |
(package private) static class |
FederationResult.TargetResult |
Modifier and Type | Field and Description |
---|---|
private List<FederationResult.TargetResult> |
targetResults
All targets of this
|
private List<FederationResult.TargetResult> |
targetsToWaitFor
The remaining targets to wait for.
|
Modifier | Constructor and Description |
---|---|
private |
FederationResult(com.google.common.collect.ImmutableList<FederationResult.TargetResult> targetResults) |
Modifier and Type | Method and Description |
---|---|
List<FederationResult.TargetResult> |
all()
Returns an immutable list of the results of this
|
private FederationResult.TargetResult |
targetWithSmallestTimeout(List<FederationResult.TargetResult> results,
int queryTimeout) |
void |
waitForAll(int queryTimeout,
Clock clock)
Wait on each target for that targets timeout
On the worst case this is the same as waiting for the max target timeout,
in the average case it may be much better because lower timeout sources do not get to
drive the timeout above their own timeout value.
|
private final List<FederationResult.TargetResult> targetResults
private List<FederationResult.TargetResult> targetsToWaitFor
private FederationResult(com.google.common.collect.ImmutableList<FederationResult.TargetResult> targetResults)
public void waitForAll(int queryTimeout, Clock clock)
public List<FederationResult.TargetResult> all()
private FederationResult.TargetResult targetWithSmallestTimeout(List<FederationResult.TargetResult> results, int queryTimeout)
Copyright © 2018. All rights reserved.