aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/dns/NameServiceRequest.java
blob: d86c2ce565bb77d4cb5aba89b9bcc586cde0013a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.dns;

import com.yahoo.vespa.hosted.controller.api.integration.dns.NameService;
import com.yahoo.vespa.hosted.controller.api.integration.dns.RecordName;
import com.yahoo.vespa.hosted.controller.application.TenantAndApplicationId;

import java.util.Optional;

/**
 * Interface for requests to a {@link NameService}.
 *
 * @author mpolden
 */
public interface NameServiceRequest {

    /** The record name this request pertains to. */
    RecordName name();

    /** The application owning this request */
    Optional<TenantAndApplicationId> owner();

    /** Send this to given name service */
    void dispatchTo(NameService nameService);

}