diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2021-02-02 16:49:32 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2021-02-03 09:54:15 +0100 |
commit | 5bf4684db649458dc798ce8e9592ef1ae7a7ad3f (patch) | |
tree | 38705924d95ac7bdc81ad9319403d83923bd752d /documentapi | |
parent | ad290b1171641a1c2a6ea8f16c3995deefb77ed6 (diff) |
Handle POST -> remote visit, PUT -> mass udpate, DELETE -> mass deletion
Diffstat (limited to 'documentapi')
-rw-r--r-- | documentapi/src/main/java/com/yahoo/documentapi/VisitorControlSession.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/documentapi/src/main/java/com/yahoo/documentapi/VisitorControlSession.java b/documentapi/src/main/java/com/yahoo/documentapi/VisitorControlSession.java index 0a4fb6fa0c8..0874ffb64fc 100644 --- a/documentapi/src/main/java/com/yahoo/documentapi/VisitorControlSession.java +++ b/documentapi/src/main/java/com/yahoo/documentapi/VisitorControlSession.java @@ -13,6 +13,7 @@ package com.yahoo.documentapi; * @author HÃ¥kon Humberset */ public interface VisitorControlSession { + /** * Acknowledges a response previously retrieved by the <code>getNext</code> * method. @@ -20,19 +21,19 @@ public interface VisitorControlSession { * @param token The ack token. You must get this from the visitor response * returned by the <code>getNext</code> method. */ - public void ack(AckToken token); + void ack(AckToken token); /** * Aborts the session. */ - public void abort(); + void abort(); /** * Returns the next response of this session. This method returns immediately. * * @return the next response, or null if no response is ready at this time */ - public VisitorResponse getNext(); + VisitorResponse getNext(); /** * Returns the next response of this session. This will block until a response is ready @@ -43,11 +44,11 @@ public interface VisitorControlSession { * @return the next response, or null if no response becomes ready before the timeout expires * @throws InterruptedException if this thread is interrupted while waiting */ - public VisitorResponse getNext(int timeoutMilliseconds) throws InterruptedException; + VisitorResponse getNext(int timeoutMilliseconds) throws InterruptedException; /** * Destroys this session and frees up any resources it has held. */ - public void destroy(); + void destroy(); } |