diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2020-10-29 15:47:53 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2020-10-29 15:47:53 +0100 |
commit | d41673879f667dc06ea326fe14ad8f6520ff981b (patch) | |
tree | 54fac7a1e3a4efbd10d520dfa2c2119af88256cd /config-model-api | |
parent | 41a7f812d0393194c89ade76a30f406f80a7f18f (diff) |
Add data store for reindexing data
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; }; + + } + +} |