Class IOThread
java.lang.Object
com.yahoo.vespa.http.client.core.communication.IOThread
- All Implemented Interfaces:
AutoCloseable
,Runnable
Thread which feeds document operations asynchronously and processes the results.
- Author:
- Einar M R Rosenvinge
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
getEndpoint
-
getConnectionStats
Returns a snapshot of counters. Threadsafe. -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
post
For testing only- Throws:
InterruptedException
-
toString
-
run
public void run() -
tick
public void tick()Do one iteration of work. Should be called from the single worker thread of this. -
currentConnection
For testing. Returns the current connection of this. Not thread safe. -
oldConnections
For testing. Returns a snapshot of the old connections of this. -
resultQueue
public com.yahoo.vespa.http.client.core.communication.EndpointResultQueue resultQueue()For testing
-