static class FederationResult.TargetResult extends Object
Modifier and Type | Field and Description |
---|---|
private Optional<Result> |
availableResult
Single threaded access to result already returned from futureResult, if any.
|
private FutureResult |
futureResult |
(package private) FederationSearcher.Target |
target |
Modifier | Constructor and Description |
---|---|
private |
TargetResult(FederationSearcher.Target target,
FutureResult futureResult) |
Modifier and Type | Method and Description |
---|---|
Optional<Result> |
getIfAvailable(long timeout)
Returns the result of this by blocking until timeout if necessary.
|
Result |
getOrTimeoutError()
Returns a result without blocking; if the result is not available one with a timeout error is produced
|
private boolean |
isMandatory() |
boolean |
successfullyCompleted() |
private int |
timeout(long queryTimeout) |
String |
toString() |
final FederationSearcher.Target target
private final FutureResult futureResult
private TargetResult(FederationSearcher.Target target, FutureResult futureResult)
private boolean isMandatory()
public Optional<Result> getIfAvailable(long timeout)
public Result getOrTimeoutError()
public boolean successfullyCompleted()
private int timeout(long queryTimeout)
Copyright © 2018. All rights reserved.