// 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;

/**
 * Status of reindexing for the documents of an application.
 *
 * @author jonmv
 */
public interface Reindexing {

    /** Reindexing status for a given application, cluster and document type. */
    default Status status(String cluster, String documentType) { return () -> Instant.MAX; }

    /** Reindexing status of a given document type in a given cluster in a given application. */
    interface Status {

        /** The instant at which reindexing may begin. */
        Instant ready();

    }

}

@@ -308,24 +308,147 @@
 indexing %7B%0A%0A
+    /** No reindexing should be done for this document type and cluster. */%0A    Status NO_REINDEXING = () -%3E Instant.MAX;%0A%0A
     /** Rein
@@ -588,33 +588,29 @@
  return 
-() -%3E Instant.MAX
+NO_REINDEXING
 ; %7D%0A%0A   

Use more explicit value when reindexing should not be done