|
26 | 26 | import reactor.core.publisher.Mono; |
27 | 27 |
|
28 | 28 | import java.util.List; |
| 29 | +import java.util.Map; |
29 | 30 |
|
30 | 31 | /** |
31 | 32 | * Generic Client Adapter to be used regardless of the specific Configuration Client implementation required. |
32 | 33 | */ |
33 | 34 | public interface CapaConfigurationClient extends DefaultCloudRuntimesClient { |
34 | 35 |
|
| 36 | + @Override |
| 37 | + <T> Mono<List<ConfigurationItem<T>>> getConfiguration(String storeName, String appId, List<String> keys, Map<String, String> metadata, TypeRef<T> type); |
| 38 | + |
| 39 | + @Override |
| 40 | + <T> Mono<List<ConfigurationItem<T>>> getConfiguration(String storeName, String appId, List<String> keys, Map<String, String> metadata, String group, TypeRef<T> type); |
| 41 | + |
| 42 | + @Override |
| 43 | + <T> Mono<List<ConfigurationItem<T>>> getConfiguration(String storeName, String appId, List<String> keys, Map<String, String> metadata, String group, String label, TypeRef<T> type); |
| 44 | + |
35 | 45 | @Override |
36 | 46 | <T> Mono<List<ConfigurationItem<T>>> getConfiguration(ConfigurationRequestItem configurationRequestItem, TypeRef<T> type); |
37 | 47 |
|
38 | 48 | @Override |
39 | | - Mono<Void> saveConfiguration(SaveConfigurationRequest saveConfigurationRequest); |
| 49 | + <T> Flux<SubConfigurationResp<T>> subscribeConfiguration(String storeName, String appId, List<String> keys, Map<String, String> metadata, TypeRef<T> type); |
40 | 50 |
|
41 | 51 | @Override |
42 | | - Mono<Void> deleteConfiguration(ConfigurationRequestItem configurationRequestItem); |
| 52 | + <T> Flux<SubConfigurationResp<T>> subscribeConfiguration(String storeName, String appId, List<String> keys, Map<String, String> metadata, String group, TypeRef<T> type); |
| 53 | + |
| 54 | + @Override |
| 55 | + <T> Flux<SubConfigurationResp<T>> subscribeConfiguration(String storeName, String appId, List<String> keys, Map<String, String> metadata, String group, String label, TypeRef<T> type); |
43 | 56 |
|
44 | 57 | @Override |
45 | 58 | <T> Flux<SubConfigurationResp<T>> subscribeConfiguration(ConfigurationRequestItem configurationRequestItem, TypeRef<T> type); |
46 | 59 |
|
| 60 | + @Override |
| 61 | + Mono<Void> saveConfiguration(SaveConfigurationRequest saveConfigurationRequest); |
| 62 | + |
| 63 | + @Override |
| 64 | + Mono<Void> deleteConfiguration(ConfigurationRequestItem configurationRequestItem); |
| 65 | + |
| 66 | + |
47 | 67 | @Override |
48 | 68 | default Mono<Void> shutdown() { |
49 | 69 | return Mono.empty(); |
|
0 commit comments