Class SessionImpl
java.lang.Object
com.yahoo.vespa.http.client.core.api.SessionImpl
- All Implemented Interfaces:
Session
,AutoCloseable
Deprecated.
This class wires up the Session API using MultiClusterHandler and MultiClusterSessionOutputStream.
-
Constructor Summary
ConstructorDescriptionSessionImpl
(SessionParams sessionParams, ScheduledThreadPoolExecutor timeoutExecutor, Clock clock) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Closes this Session.int
Deprecated.Deprecated.Returns stats about the cluster.results()
Deprecated.ReturnsResult
s for all operations enqueued bySession.stream(CharSequence)
.stream
(CharSequence documentId) Deprecated.Returns an OutputStream that can be used to write ONE operation, identified by the given document ID.
-
Constructor Details
-
SessionImpl
public SessionImpl(SessionParams sessionParams, ScheduledThreadPoolExecutor timeoutExecutor, Clock clock) Deprecated.
-
-
Method Details
-
stream
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
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.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSession
-
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.
-