summaryrefslogtreecommitdiffstats
path: root/documentapi
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-10-12 11:59:33 +0200
committerjonmv <venstad@gmail.com>2022-10-12 11:59:33 +0200
commit1752a492c3fad9d7c974ec7dba730e28ccc6629c (patch)
treef8bb398cc0e0d9f85ead409656b31151717c3644 /documentapi
parent18b9e3ac1120513f934263a3ca131d6e9e85e7d6 (diff)
Support tracing for /document/v1/ visit requests
Diffstat (limited to 'documentapi')
-rw-r--r--documentapi/src/main/java/com/yahoo/documentapi/VisitorSession.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/documentapi/src/main/java/com/yahoo/documentapi/VisitorSession.java b/documentapi/src/main/java/com/yahoo/documentapi/VisitorSession.java
index 4a41769ff4c..e2efaf1de10 100644
--- a/documentapi/src/main/java/com/yahoo/documentapi/VisitorSession.java
+++ b/documentapi/src/main/java/com/yahoo/documentapi/VisitorSession.java
@@ -4,10 +4,9 @@ package com.yahoo.documentapi;
import com.yahoo.messagebus.Trace;
/**
- * A session for tracking progress for and potentially receiving data from a
- * visitor.
+ * A session for tracking progress for and potentially receiving data from a visitor.
*
- * @author <a href="mailto:thomasg@yahoo-inc.com">Thomas Gundersen</a>
+ * @author Thomas Gundersen
*/
public interface VisitorSession extends VisitorControlSession {
/**
@@ -15,21 +14,21 @@ public interface VisitorSession extends VisitorControlSession {
*
* @return True if visiting is done (either by error or success).
*/
- public boolean isDone();
+ boolean isDone();
/**
* Retrieves the last progress token gotten for this visitor.
*
* @return The progress token.
*/
- public ProgressToken getProgress();
+ ProgressToken getProgress();
/**
* Returns the tracing information so far about the visitor.
*
* @return Returns the trace.
*/
- public Trace getTrace();
+ Trace getTrace();
/**
* Waits until visiting is done, or the given timeout (in ms) expires.
@@ -39,5 +38,5 @@ public interface VisitorSession extends VisitorControlSession {
* @return True if visiting is done (either by error or success).
* @throws InterruptedException If an interrupt signal was received while waiting.
*/
- public boolean waitUntilDone(long timeoutMs) throws InterruptedException;
+ boolean waitUntilDone(long timeoutMs) throws InterruptedException;
}