blob: d0a766a9e05e31ed668f2cee883b70495a4927dc (
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
24
25
26
27
28
29
30
31
32
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.proxy;
import com.yahoo.vespa.config.RawConfig;
import com.yahoo.vespa.config.protocol.JRTServerConfigRequest;
import java.util.List;
import java.util.Optional;
/**
* A client to a config source, which could be an RPC config server or some other backing for
* getting config.
*
* @author hmusum
*/
interface ConfigSourceClient {
Optional<RawConfig> getConfig(RawConfig input, JRTServerConfigRequest request);
void shutdown();
void shutdownSourceConnections();
String getActiveSourceConnection();
List<String> getSourceConnections();
DelayedResponses delayedResponses();
MemoryCache memoryCache();
}
|