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:
com.yahoo.search.dispatch.rpc.Client.ResponseReceiver
,Closeable
,AutoCloseable
public class RpcSearchInvoker
extends SearchInvoker
implements com.yahoo.search.dispatch.rpc.Client.ResponseReceiver
SearchInvoker
implementation using RPC- Author:
- ollivir
-
Method Summary
Modifier and TypeMethodDescriptionprotected InvokerResult
getSearchResult
(Execution execution) void
receive
(com.yahoo.search.dispatch.rpc.Client.ResponseOrError<com.yahoo.search.dispatch.rpc.Client.ProtobufResponse> response) protected void
release()
protected Object
sendSearchRequest
(Query query, Object incomingContext) Methods inherited from class com.yahoo.search.dispatch.SearchInvoker
distributionKey, errorResult, responseAvailable, search, setMonitor
Methods inherited from class com.yahoo.search.dispatch.CloseableInvoker
close, setFinalStatus, teardown
-
Method Details
-
sendSearchRequest
- Specified by:
sendSearchRequest
in 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:
getSearchResult
in classSearchInvoker
- Throws:
IOException
-
release
protected void release()- Specified by:
release
in classCloseableInvoker
-
receive
public void receive(com.yahoo.search.dispatch.rpc.Client.ResponseOrError<com.yahoo.search.dispatch.rpc.Client.ProtobufResponse> response) - Specified by:
receive
in interfacecom.yahoo.search.dispatch.rpc.Client.ResponseReceiver
-