summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2021-05-11 11:12:31 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2021-05-11 11:14:46 +0200
commitd620a96865da85cef199a1b73e10dbeeacca99cf (patch)
tree0d537968f7b8668267abe8a3f543e6766cbf3d4e
parentefaefcd64ee798508df04c0b2c4d37e91d0049e8 (diff)
Extend Closeable
-rw-r--r--vespa-feed-client/src/main/java/com/yahoo/vespa/feed/client/FeedClient.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/vespa-feed-client/src/main/java/com/yahoo/vespa/feed/client/FeedClient.java b/vespa-feed-client/src/main/java/com/yahoo/vespa/feed/client/FeedClient.java
index af652401044..2233b0a1a39 100644
--- a/vespa-feed-client/src/main/java/com/yahoo/vespa/feed/client/FeedClient.java
+++ b/vespa-feed-client/src/main/java/com/yahoo/vespa/feed/client/FeedClient.java
@@ -1,12 +1,13 @@
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.feed.client;
+import java.io.Closeable;
import java.util.concurrent.Future;
/**
* @author bjorncs
*/
-public interface FeedClient {
+public interface FeedClient extends Closeable {
Future<Result> put(String documentId, String documentJson, OperationParameters params, ResultCallback callback);
Future<Result> remove(String documentId, OperationParameters params, ResultCallback callback);
Future<Result> update(String documentId, String documentJson, OperationParameters params, ResultCallback callback);
@@ -15,4 +16,5 @@ public interface FeedClient {
void completed(Result result);
void failed(FeedException e);
}
+
}