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

import com.yahoo.messagebus.routing.ApplicationSpec;
import com.yahoo.messagebus.routing.RoutingTableSpec;

/**
 * This interface defines the necessary api for {@link Routing} to prepare and combine routing tables for all available
 * protocols.
 *
 * @author Simon Thoresen Hult
 */
public interface Protocol {

    /** Returns the specification for the routing table of this protocol. */
    RoutingTableSpec getRoutingTableSpec();

    /** Returns the specification of the application as seen by this protocol. */
    ApplicationSpec getApplicationSpec();

}