public static class QueueingSearchExecutor.SearchItem extends Object
QueueingSearchExecutor
.Modifier and Type | Field and Description |
---|---|
private IntermediateResponse |
intermediateResponse
Intermediate response contained in this blocking search item.
|
private SearchEntry |
searchEntry
Search entry contained in this blocking search item.
|
private Exception |
searchException
Exception thrown by the search operation.
|
private SearchReference |
searchReference
Search reference contained in this blocking search item.
|
private Response<SearchResult> |
searchResponse
Response contained in this blocking search item.
|
Constructor and Description |
---|
SearchItem(Exception exception)
Creates a new blocking search item.
|
SearchItem(IntermediateResponse response)
Creates a new blocking search item.
|
SearchItem(Response<SearchResult> response)
Creates a new blocking search item.
|
SearchItem(SearchEntry entry)
Creates a new blocking search item.
|
SearchItem(SearchReference reference)
Creates a new blocking search item.
|
Modifier and Type | Method and Description |
---|---|
SearchEntry |
getEntry()
Returns the search entry contained in this item or null if this item does not contain a search entry.
|
Exception |
getException()
Returns the exception contained in this item or null if this item does not contain an exception.
|
IntermediateResponse |
getIntermediateResponse()
Returns the intermediate response contained in this item or null if this item does not contain an intermediate
response.
|
SearchReference |
getReference()
Returns the search reference contained in this item or null if this item does not contain a search reference.
|
Response<SearchResult> |
getResponse()
Returns the response contained in this item or null if this item does not contain a response.
|
boolean |
isEntry()
Returns whether this item represents a search entry.
|
boolean |
isException()
Returns whether this item represents an exception.
|
boolean |
isIntermediateResponse()
Returns whether this item represents an intermediate response.
|
boolean |
isReference()
Returns whether this item represents a search reference.
|
boolean |
isResponse()
Returns whether this item represents a response.
|
String |
toString() |
private final SearchEntry searchEntry
private final SearchReference searchReference
private final IntermediateResponse intermediateResponse
private final Response<SearchResult> searchResponse
private final Exception searchException
public SearchItem(SearchEntry entry)
entry
- that represents this itempublic SearchItem(SearchReference reference)
reference
- that represents this itempublic SearchItem(IntermediateResponse response)
response
- that represents this itempublic SearchItem(Response<SearchResult> response)
response
- that represents this itempublic SearchItem(Exception exception)
exception
- that represents this itempublic boolean isEntry()
public SearchEntry getEntry()
public boolean isReference()
public SearchReference getReference()
public boolean isIntermediateResponse()
public IntermediateResponse getIntermediateResponse()
public boolean isResponse()
public Response<SearchResult> getResponse()
public boolean isException()
public Exception getException()
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.