public static class Dispatcher.GetDocsumsResponseReceiver extends Object
Modifier and Type | Field and Description |
---|---|
private com.yahoo.compress.Compressor |
compressor |
private boolean |
hasReportedError
Whether we have already logged/notified about an error - to avoid spamming
|
private int |
outstandingResponses
The number of responses we should receive (and process) before this is complete
|
private BlockingQueue<Client.GetDocsumsResponseOrError> |
responses |
private Result |
result |
Constructor and Description |
---|
GetDocsumsResponseReceiver(int requestCount,
com.yahoo.compress.Compressor compressor,
Result result) |
Modifier and Type | Method and Description |
---|---|
private void |
addErrors(com.yahoo.slime.Inspector errors) |
private int |
fill(List<FastHit> hits,
String summaryClass,
DocumentDatabase documentDb,
byte[] slimeBytes) |
private int |
processResponse(Client.GetDocsumsResponseOrError responseOrError,
String summaryClass,
DocumentDatabase documentDb) |
void |
processResponses(Query query,
String summaryClass,
DocumentDatabase documentDb)
Call this from the dispatcher thread to initiate and complete processing of responses.
|
void |
receive(Client.GetDocsumsResponseOrError response)
Called by a thread belonging to the client when a valid response becomes available
|
private void |
throwTimeout() |
private final BlockingQueue<Client.GetDocsumsResponseOrError> responses
private final com.yahoo.compress.Compressor compressor
private final Result result
private boolean hasReportedError
private int outstandingResponses
public GetDocsumsResponseReceiver(int requestCount, com.yahoo.compress.Compressor compressor, Result result)
public void receive(Client.GetDocsumsResponseOrError response)
private void throwTimeout() throws TimeoutException
TimeoutException
public void processResponses(Query query, String summaryClass, DocumentDatabase documentDb) throws TimeoutException
TimeoutException
private int processResponse(Client.GetDocsumsResponseOrError responseOrError, String summaryClass, DocumentDatabase documentDb)
private void addErrors(com.yahoo.slime.Inspector errors)
private int fill(List<FastHit> hits, String summaryClass, DocumentDatabase documentDb, byte[] slimeBytes)
Copyright © 2018. All rights reserved.