blob: dd3cca9a4fab4ec06e6ce7b4a47ca04b3caded94 (
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 Yahoo. 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);
}
|