aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/di/config/SubscriberFactory.java
blob: c1c36a1b3decbe8957e4be6b0d7274105ec31e74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.di.config;

import com.google.inject.ProvidedBy;
import com.yahoo.container.di.CloudSubscriberFactory;
import com.yahoo.vespa.config.ConfigKey;

import java.util.Set;

/**
 * @author Tony Vaagenes
 * @author gjoranv
 */
@ProvidedBy(CloudSubscriberFactory.Provider.class)
public interface SubscriberFactory {

    Subscriber getSubscriber(Set<? extends ConfigKey<?>> configKeys);
    void reloadActiveSubscribers(long generation);

}