Package com.yahoo.vespa.http.client
Class SyncFeedClient
java.lang.Object
com.yahoo.vespa.http.client.SyncFeedClient
- All Implemented Interfaces:
AutoCloseable
Deprecated.
Vespa-http-client will be removed in Vespa 8. It's replaced by vespa-feed-client
A utility wrapper of a FeedClient which feeds a list of documents and blocks until all responses are returned,
before returning the results.
Not multithread safe: A sync feed client instance can only be used by a single thread
(but it can and should be reused for multiple subsequent synchronous calls).
- Author:
- bratseth
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated.Holds the arguments to a single stream operationstatic class
Deprecated.The result of a SyncFeedClient.stream call. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.stream
(List<SyncFeedClient.SyncOperation> operations) Deprecated.Calls FeedClient.stream for each entry in the list, blocks until all results are ready and returns them.
-
Constructor Details
-
SyncFeedClient
Deprecated.
-
-
Method Details
-
stream
Deprecated.Calls FeedClient.stream for each entry in the list, blocks until all results are ready and returns them. This will block for at most the time it takes to feed these operations + clientTimeout given in the sessions params when creating this.- Parameters:
operations
- the Vespa write operations to stream- Returns:
- the result of feeding all these operations
-
close
public void close()Deprecated.- Specified by:
close
in interfaceAutoCloseable
-