aboutsummaryrefslogtreecommitdiffstats
path: root/config-model-api/src/main/java/com/yahoo/config/model/api/SuperModelProvider.java
blob: 4c7f15143ec52ef8d1bd4808789f8e674d261185 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2017 Yahoo Holdings. 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.provision.Zone;

public interface SuperModelProvider {
    SuperModel getSuperModel();

    /**
     * Returns the current SuperModel. All changes to the SuperModel
     * following that snapshot will be published to the listener. Warning: The listener
     * methods may have been invoked before (or concurrently with) this method returning.
     */
    SuperModel snapshot(SuperModelListener listener);

    // TODO: Remove - clients of SuperModel should get zone from elsewhere.
    Zone getZone();
}