aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/ConfigChangeRefeedAction.java
blob: 226fabdcb956f51aa626fbc13bffc96815e15288 (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 Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model.api;

import com.yahoo.config.application.api.ValidationId;

/**
 * Represents an action to re-feed a document type in order to handle a config change.
 *
 * @author geirst
 */
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 */
    default String name() { return validationId().orElseThrow().value(); }

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

}