Class SessionImpl
- java.lang.Object
-
- com.yahoo.vespa.http.client.core.api.SessionImpl
-
-
Constructor Summary
Constructors Constructor Description SessionImpl(SessionParams sessionParams, java.util.concurrent.ScheduledThreadPoolExecutor timeoutExecutor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Closes this Session.int
getIncompleteResultQueueSize()
Deprecated.java.lang.String
getStatsAsJson()
Deprecated.Returns stats about the cluster.java.util.concurrent.BlockingQueue<Result>
results()
Deprecated.ReturnsResult
s for all operations enqueued bySession.stream(CharSequence)
.java.io.OutputStream
stream(java.lang.CharSequence documentId)
Deprecated.Returns an OutputStream that can be used to write ONE operation, identified by the given document ID.
-
-
-
Constructor Detail
-
SessionImpl
public SessionImpl(SessionParams sessionParams, java.util.concurrent.ScheduledThreadPoolExecutor timeoutExecutor)
Deprecated.
-
-
Method Detail
-
stream
public java.io.OutputStream stream(java.lang.CharSequence documentId)
Deprecated.Description copied from interface:Session
Returns an OutputStream that can be used to write ONE operation, identified by the given document ID. The data format must match theFeedParams.DataFormat
given when this Session was instantiated. Note that most data formats include the document ID in the actual buffer, which must match the document ID given as a parameter to this method. It is (as always) important to close the OutputStream returned - nothing is written to the wire until this is done. Note also that the Session holds a certain, dynamically determined maximum number of document operations in memory. When this threshold is reached,OutputStream.close()
will block.
-
results
public java.util.concurrent.BlockingQueue<Result> results()
Deprecated.Description copied from interface:Session
ReturnsResult
s for all operations enqueued bySession.stream(CharSequence)
. Note that the order of results is non-deterministic, with one exception - results for one document ID are returned in the order they were enqueued. In all other cases Results may appear out-of-order.
-
close
public void close()
Deprecated.Description copied from interface:Session
Closes this Session. All resources are freed, persistent connections are closed and internal threads are stopped.
-
getStatsAsJson
public java.lang.String getStatsAsJson()
Deprecated.Description copied from interface:Session
Returns stats about the cluster.- Specified by:
getStatsAsJson
in interfaceSession
- Returns:
- JSON string with information about cluster.
-
getIncompleteResultQueueSize
public int getIncompleteResultQueueSize()
Deprecated.
-
-