Class SyncFeedClient

java.lang.Object
com.yahoo.vespa.http.client.SyncFeedClient
All Implemented Interfaces:
AutoCloseable

@Deprecated public class SyncFeedClient extends Object implements 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
  • Constructor Details

    • SyncFeedClient

      public SyncFeedClient(SessionParams params)
      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 interface AutoCloseable