summaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeRefeedAction.java
blob: 7f70733fb8ca182ee0279d809d2a7fa0ac13d29a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;

/**
 * Represents an action to re-feed a document type in order to handle a config change.
 *
 * @author geirst
 * @since 5.43
 */
public interface ConfigChangeRefeedAction extends ConfigChangeAction {

    @Override
    default Type getType() { return Type.REFEED; }

    /** Returns the name identifying this kind of change, used to identify names which should be allowed */
    // Remove this default implementation when model versions earlier than 5.125 are gone
    default String name() { return ""; }

    /** Returns the name of the document type that one must re-feed to handle this config change */
    String getDocumentType();

}