Package com.yahoo.search.dispatch.rpc
Class RpcSearchInvoker
java.lang.Object
com.yahoo.search.dispatch.CloseableInvoker
com.yahoo.search.dispatch.SearchInvoker
com.yahoo.search.dispatch.rpc.RpcSearchInvoker
- All Implemented Interfaces:
Client.ResponseReceiver,Closeable,AutoCloseable
SearchInvoker implementation using RPC- Author:
- ollivir
-
Method Summary
Modifier and TypeMethodDescriptionprotected InvokerResultvoidreceive(Client.ResponseOrError<Client.ProtobufResponse> response) protected voidrelease()protected ObjectsendSearchRequest(Query query, Object incomingContext) Methods inherited from class com.yahoo.search.dispatch.SearchInvoker
distributionKey, errorResult, responseAvailable, search, setMonitorMethods inherited from class com.yahoo.search.dispatch.CloseableInvoker
close, setFinalStatus, teardown
-
Method Details
-
sendSearchRequest
- Specified by:
sendSearchRequestin classSearchInvoker- Parameters:
query- the query to sendincomingContext- a context object that can be used to pass context among different invokers, e.g for reuse of preserialized data.- Returns:
- an object that can be passed to the next invocation of sendSearchRequest
-
getSearchResult
- Specified by:
getSearchResultin classSearchInvoker- Throws:
IOException
-
release
protected void release()- Specified by:
releasein classCloseableInvoker
-
receive
- Specified by:
receivein interfaceClient.ResponseReceiver
-