diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-11 11:12:31 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-05-11 11:14:46 +0200 |
commit | d620a96865da85cef199a1b73e10dbeeacca99cf (patch) | |
tree | 0d537968f7b8668267abe8a3f543e6766cbf3d4e /vespa-feed-client | |
parent | efaefcd64ee798508df04c0b2c4d37e91d0049e8 (diff) |
Extend Closeable
Diffstat (limited to 'vespa-feed-client')
-rw-r--r-- | vespa-feed-client/src/main/java/com/yahoo/vespa/feed/client/FeedClient.java | 4 |
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); } + } |