blob: 8fe17d30a5dd115f8152d7a89af46dfd95904a50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.client.core.communication;
import com.yahoo.vespa.http.client.config.Endpoint;
import com.yahoo.vespa.http.client.core.Document;
import com.yahoo.vespa.http.client.core.ServerResponseException;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
public interface GatewayConnection {
InputStream writeOperations(List<Document> docs) throws ServerResponseException, IOException;
InputStream drain() throws ServerResponseException, IOException;
boolean connect();
Endpoint getEndpoint();
void handshake() throws ServerResponseException, IOException;
void close();
}
|