// 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.util.concurrent.Future;

/**
 * @author bjorncs
 */
public interface FeedClient {
    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);

    interface ResultCallback {
        void completed(Result result);
        void failed(FeedException e);
    }
}

@@ -144,16 +144,42 @@
 lient;%0A%0A
+import java.io.Closeable;%0A
 import j
@@ -262,16 +262,34 @@
 dClient 
+extends Closeable 
 %7B%0A    Fu
@@ -733,10 +733,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Extend Closeable