diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2020-11-02 09:46:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 09:46:01 +0100 |
commit | fd229417d0f7bb65fa1b6c428c49dfbbe6f86edc (patch) | |
tree | de3ce71217bbd7a3ec2927ca5bd0533c5ce5d4ed /config-model-api | |
parent | bd7181b95f36434052b73a95fc8202995551f8cf (diff) | |
parent | fe43131104ac22158a65c6e6c040e23a76d16101 (diff) |
Merge pull request #15087 from vespa-engine/jonmv/reindexing-data-stores
Jonmv/reindexing data stores
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/Reindexing.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/Reindexing.java b/config-model-api/src/main/java/com/yahoo/config/model/api/Reindexing.java new file mode 100644 index 00000000000..0d37f6810a7 --- /dev/null +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/Reindexing.java @@ -0,0 +1,26 @@ +// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.config.model.api; + +import java.time.Instant; +import java.util.Map; + +/** + * Instants after which reindexing should be triggered, for select document types. + * + * @author jonmv + */ +public interface Reindexing { + + /** The reindexing status for each document type for which this is known. */ + default Map<String, ? extends Status> status() { return Map.of(); } + + + /** Reindexing status of a given document type. */ + interface Status { + + /** The instant at which reindexing of this document type may begin. */ + default Instant ready() { return Instant.MAX; }; + + } + +} |